Compile the code

We'll walk you through the compilation of "exp4" which simulates zonal flow over a Gaussian bump.

From the top-level source directory, where you installed the code, cd to verification/exp4:

% cd verification/exp4
There are four dsub-directories and a REAME file. Now cd into input/ and run the configuration tool genmake:
% cd input
% ../../../tools/genmake -mods=../code
% make depend
genmake will create a file Makefile and report which packages are being included/excluded. make depend figures out the file dependancies that allows make to work efficiently. You'll also notice the number of files in the current directory has greatly expanded. This are all symbolic links to the original source code.

You only need to do the above steps once; here after, you can edit the code and re-compile with make.

Compile and link the code:

% make
This will take some time, depending on your system. [Hint: compiling on remotely mounted disks is often really slow]

If all goes well, you're ready to run the model...


Last modified on $Date: 2001/10/12 17:46:59 $
CVS: /u/gcmpack/mitgcm.org/sealion/getting_started/gettingStarted.html,v $Revision: 1.2 $