Difference between revisions of "Building mom5.0.2 (modular ocean model) on triolith"
(Created page with "This page describes the compiling of the NOAA/GFLD MOM (modular ocean model) version 5.0.2 ([http://mom-ocean.org/web MOM home]) on NSC's triolith system ([http://www.nsc.liu.se/...") |
|||
Line 21: | Line 21: | ||
:<code>cd /home/${USER}/mom/exp</code> | :<code>cd /home/${USER}/mom/exp</code> | ||
− | :<code>./MOM_compile.csh --type CM2M --platform nsc.intel</code> | + | :<code>./MOM_compile.nsc.intel.csh --type CM2M --platform nsc.intel</code> |
6. Go and have a coffee, the compile takes quite some time. | 6. Go and have a coffee, the compile takes quite some time. | ||
7. Check in the folder <tt>/home/${USER}/mom/exec</tt>. If the build is successful there should be a <tt>nsc.intel</tt> folder which contains a <tt>CM2M</tt> folder with your executable. | 7. Check in the folder <tt>/home/${USER}/mom/exec</tt>. If the build is successful there should be a <tt>nsc.intel</tt> folder which contains a <tt>CM2M</tt> folder with your executable. |
Revision as of 13:27, 18 December 2013
This page describes the compiling of the NOAA/GFLD MOM (modular ocean model) version 5.0.2 (MOM home) on NSC's triolith system (triolith). Version 5 of MOM is an open source project released under the GPL license.
1. Ensure the correct intel compile module and wrappers are loaded using:
module load build-environment/nsc-recommended
2. Download source code to an appropriate folder (e.g. /home/${USER}/)
git clone git://github.com/BreakawayLabs/mom.git; cd mom; git checkout 5.0.2
3. Copy the triolith specific config files environs.nsc.intel and mkmf.template.nsc.intel to the bin folder
cp /nobackup/global/struthers/Public/mom5.0.2/environs.nsc.intel /home/${USER}/mom/bin
cp /nobackup/global/struthers/Public/mom5.0.2/mkmf.template.nsc.intel /home/${USER}/mom/bin
4. Copy the compile script MOM_compile.nsc.intel.csh to the 'exp' folder
cp /nobackup/global/struthers/Public/mom5.0.2/MOM_compile.nsc.intel.csh /home/${USER}/mom/exp
5. Run the compile script using the nsc.intel platform flag (example below is for the CM2M version of the model):
cd /home/${USER}/mom/exp
./MOM_compile.nsc.intel.csh --type CM2M --platform nsc.intel
6. Go and have a coffee, the compile takes quite some time.
7. Check in the folder /home/${USER}/mom/exec. If the build is successful there should be a nsc.intel folder which contains a CM2M folder with your executable.