| 1 | |
| 2 | = Compilation of NEMO and NEMOVAR using FCM = |
| 3 | |
| 4 | Last edited [[Timestamp]] |
| 5 | |
| 6 | [[PageOutline]] |
| 7 | |
| 8 | ---- |
| 9 | The recommended way of compiling the NEMO/NEMOVAR version is to use FCM. FCM stands for "Flexible Configuration Management" more information can be found here |
| 10 | http://ncas-cms.nerc.ac.uk/html_umdocs/FCM/user_guide/ |
| 11 | |
| 12 | == 1) FCM configuration settings == |
| 13 | |
| 14 | FCM 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 | |
| 22 | Usually, 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 | |
| 31 | In ~/NEMOVAR/UTIL/build/: |
| 32 | {{{ |
| 33 | ./fcmvmake.ksh -t path/to/build -c user_machine -B build_target |
| 34 | }}} |
| 35 | The 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. |
| 36 | The 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 | |
| 40 | In ~/NEMOVAR/UTIL/scripts/ : |
| 41 | {{{ |
| 42 | ./runnemo.ksh -t path/to/build -A user_machine -F |
| 43 | }}} |
| 44 | The "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 == |
| 47 | In ~/NEMOVAR/UTIL/scripts/ : |
| 48 | {{{ |
| 49 | ./runnemotam.ksh -t path/to/build -A user_machine -F |
| 50 | }}} |
| 51 | The "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. |
| 52 | As default, the will use the setup file: my_setup_generic. |
| 53 | |
| 54 | == 5) Running NEMOVAR == |
| 55 | In ~/NEMOVAR/UTIL/scripts/ : |
| 56 | {{{ |
| 57 | ./runnemovar.ksh -t path/to/build -A user_machine -F |
| 58 | }}} |
| 59 | The "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. |
| 60 | As default, the will use the setup file: my_setup_tam_var. |