New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
WorkingGroups/TAM/CompilationFCMgit (diff) – NEMO

Changes between Initial Version and Version 1 of WorkingGroups/TAM/CompilationFCMgit


Ignore:
Timestamp:
2009-09-16T16:33:54+02:00 (15 years ago)
Author:
vigilant
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkingGroups/TAM/CompilationFCMgit

    v1 v1  
     1 
     2= Compilation of NEMO and NEMOVAR using FCM = 
     3 
     4Last edited [[Timestamp]] 
     5 
     6[[PageOutline]] 
     7 
     8---- 
     9The recommended way of compiling the NEMO/NEMOVAR version is to use FCM. FCM stands for "Flexible Configuration Management" more information can be found here  
     10http://ncas-cms.nerc.ac.uk/html_umdocs/FCM/user_guide/ 
     11 
     12== 1) FCM configuration settings == 
     13 
     14FCM configuration settings are placed into the folder ~/fcmconfig/ with the following details: 
     15 
     16{{{ 
     17    ~/NEMOVAR/UTIL/build/fcmconfig/bld/machines/nemo.cfg                                   : user specific machine configuration  
     18    ~/NEMOVAR/UTIL/build/fcmconfig/nemo/machines/cppkeys.CONFIG.cfg           : default ccp keys set for CONFIG 
     19    ~/NEMOVAR/UTIL/build/fcmconfig/src/machines/nemo.cfg                                   : code source paths   
     20}}} 
     21 
     22Usually, the user only needs to add (if not there already) his machines configuration: 
     23{{{ 
     24    - create a 'user_machine' folder into ~/fcmconfig/bld/ 
     25    - copy paste a nemo.cfg file into his folder (for instance   ~/fcmconfig/bld/linux/nemo.cfg 
     26    - modify nemo.cfg according to user configuration  
     27}}} 
     28 
     29== 2) Building NEMO / NEMOTAM / NEMOVAR == 
     30 
     31In ~/NEMOVAR/UTIL/build/: 
     32{{{ 
     33      ./fcmvmake.ksh -t path/to/build -c user_machine -B build_target 
     34}}} 
     35The option '''-B''' is either NEMO, NEMOTAM, NEMOVAR or NEMOALL (lower case is ok). [[BR]]  FCM will create a folder 'nemofcm_build' in path/to/build.  
     36The user can also specify other compilation arguments (GRID, NPX and NPY for instance). The GRID default configuration is ORCA2 and NPX=NPY=1. The executable files opa.exe is placed in ~/path/to/build/nemofcm_build/build/bin/ 
     37 
     38== 3) Running NEMO == 
     39 
     40In ~/NEMOVAR/UTIL/scripts/ : 
     41{{{ 
     42      ./runnemo.ksh -t path/to/build -A user_machine -F 
     43}}} 
     44The "fcmnmake.ksh" script has similar arguments as the old nemomake.ksh script. The "-F" argument for "runnemo.ksh" is needed to use the FCM generated executable. 
     45 
     46== 4) Running NEMOTAM == 
     47In ~/NEMOVAR/UTIL/scripts/ : 
     48{{{ 
     49      ./runnemotam.ksh -t path/to/build -A user_machine -F 
     50}}} 
     51The "fcmnmake.ksh" script has similar arguments as the old nemomake.ksh script. The "-F" argument for "runnemovar.ksh" is needed to use the FCM generated excutable. 
     52As default,  the will use the setup file: my_setup_generic.   
     53 
     54== 5) Running NEMOVAR == 
     55In ~/NEMOVAR/UTIL/scripts/ : 
     56{{{ 
     57      ./runnemovar.ksh -t path/to/build -A user_machine -F 
     58}}} 
     59The "fcmnmake.ksh" script has similar arguments as the old nemomake.ksh script. The "-F" argument for "runnemovar.ksh" is needed to use the FCM generated excutable. 
     60As default,  the will use the setup file: my_setup_tam_var.