MOCASSIN 2.02 manual

Compile mocassin, mocassinWarm, mocassinOutput or mocassinPlot

In the tar ball you should find an example makefile; this was coded for use with the current free Intel F90 compiler (ifort 8.0.034) and the standard free MPI libraries (mpich-1.2.5.2) Please edit the make-file to suit the path of the compiler and mpi libraries on your system. Some compilers may require different/additional optimisation flags.

Several other makefiles created for a number of different platforms are also included (e.g. makefile.sun etc..); these are only given as further examples and are not being mantained. Whatever you do PLEASE be careful with aggressive optimization switches. -O5 seems to work fine on all platforms so far, but -fsimple=2 gives serious problems.

ALWAYS RUN A BENCHMARK CASE WHEN COMPILING ON A NEW PLATFORM!!.

There are four drivers for MOCASSIN:

To compile either of these drivers you need to do type:

make mocassin
make mocassinWarm
make mocassinOutput
make mocassinPlot

WARNING!!!! Sometimes (e.g. on the SUN) the makefile is such that you have to type make first, this will make all the object files, then to link up one of the versions of the driver listed above type

make mocassin
make mocassinWarm
make mocassinOutput
make mocassinPlot

.... if no compiler errors and everything has gone smoothly then the sun will shine and all will be very nice.. if you get compilation errors please email them to me and I will try to help if I can.

IMORTANT NOTE: If you are using an IBM platform and the makefile provided here then you will also need to change all the module file extensions from .f90 to .f (this is because for some annoying reason the compiler only looks for .f files.. I am sure there must be a way around this, but I couldn’t find it, if you do, please let me know!). The file extensions can be easily changed using the following command:

rename 's/f90$/f/g' *f90
« 2.2 Unpacking the tarballcontents 2.4 Writing a new Makefile »