next up previous contents
Next: Running the Model Up: How to Make a Previous: How to Make a

Compiling the Model

 

To test if the model compiles on your machine, select a suitable makefile in the src/Makefiles directory and copy it into the src directory under the name makefile. Then go into the source directory src and execute ``make''. If things fail you will have to adjust the makefile to your system. The different makefiles in src/Makefiles provide you with some guidance on how to change it on different systems. We successfully compiled QTCM on Compaq Alpha (DEC) OFS1, Cray J90, IBM AIX, PC Linux (Intel ifc and Lahey-Fujitsu compiler), Sun Sparc and SGI Irix machines for which we provide example makefiles in the src/Makefiles directory. If you run into problems please let us know. Due to the various preprocessor macros in the code the compile process has to include a preprocessor step. Have a look at your Fortran-90 documentation to see how to activate it.

N.B.: Unfortunately, some Fortran-90 insist on specific file name extensions to correctly compile Fortran-90 code with preprocessor directives. One group of compilers prefers an ``.F90'' extension to include a preprocessor step while others refuse to compile anything with such an extension. We chose the ``.f90'' extension which works on most systems. Sometimes one has to specify a compiler specific flag to enable the Fortran-90 preprocessor (see FPPON in the makefiles). The exceptions are the Lahey-Fujitsu (PC-Linux) and the IBM-AIX compilers for which the file name extension hasto be changed. The makefiles for these compilers do this automatically the first time the model is compiled. Also of note is a bug in compiling on DEC computers. We successfully compiled with fortran-90 compiler 5.4 but failed to do so with 5.1.



Climate Systems Interaction Group
Sun Aug 25 00:58:46 PDT 2002