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.
Users/ModelInstall (diff) – NEMO

Changes between Version 51 and Version 52 of Users/ModelInstall


Ignore:
Timestamp:
2022-04-29T08:50:50+02:00 (2 years ago)
Author:
nemo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Users/ModelInstall

    v51 v52  
    77== Download NEMO reference code and configurations 
    88 
    9 {{{#!div class='important' width='50em' 
    10  
    11 === Disclaimer 
    12  
    13 '''The NEMO source code is freely available and distributed under CeCILL license (''GNU GPL compatible'')'''. \\ 
     9{{{#!div class='system-message' style="width: 90em" 
     10The NEMO source code is freely available and distributed under CeCILL license (''GNU GPL compatible''). \\ 
    1411You can use, modify and/ or redistribute the software under its terms, but users are provided only with a limited warranty and the software's authors and the successive licensor's have only limited liability. 
    15  
    1612}}} 
    1713 
    1814To download the NEMO reference version (for now revision 3.6): 
    19 {{{#!sh 
     15{{{ 
    2016svn co http://forge.ipsl.jussieu.fr/nemo/svn/NEMO/releases/release-3.6/NEMOGCM 
    2117}}} 
     
    9389It is recommended to copy and rename an configuration file from an architecture similar to your owns. You will need to set appropriate values for all of the variables in the file. In particular the FCM variables `%NCDF_HOME`, `%HDF5_HOME` and `%XIOS_HOME` should be set to the installation directories used for XIOS installation. 
    9490 
    95 [[IncludeSource(NEMO/releases/release-3.6/NEMOGCM/ARCH/arch-macport_osx.fcm, start=42, end=45, mimetype=application/x-shellscript, line_numbers=0)]] 
     91{{{#!perl 
     92%NCDF_HOME           /opt/local 
     93%HDF5_HOME           /opt/local 
     94%XIOS_HOME           /Users/$( whoami )/xios-1.0 
     95%OASIS_HOME          /not/defined 
     96}}} 
    9697 
    9798== Compile and create NEMO executable 
     
    147148=== More options 
    148149 
    149 [[IncludeSource(NEMO/releases/release-3.6/NEMOGCM/CONFIG/makenemo, start=129, end=144, mimetype=application/x-shellscript, line_numbers=0)]] 
     150{{{#!bash 
     151        echo "Usage   : "${b_n} \ 
     152       " [-h] [-n name] [-m arch] [-d "dir1 dir2"] [-r conf] [-u conf] [-s Path] [-e Path] [-j No] [-v No] [-k 0/1]"; 
     153   echo " -h           : help"; 
     154   echo " -h institute : specific help for consortium members"; 
     155   echo " -n name      : config name, [-n help] to list existing configurations"; 
     156   echo " -m arch      : choose compiler, [-m help] to list existing compilers"; 
     157   echo " -d dir       : choose NEMO sub-directories"; 
     158   echo " -r conf      : choose reference configuration"; 
     159   echo " -u conf      : choose an unsupported (external) configuration"; 
     160        echo " -s Path      : choose alternative location for NEMO main directory"; 
     161        echo " -e Path      : choose alternative location for MY_SRC directory"; 
     162        echo " -j No        : number of processes used to compile (0=nocompilation)"; 
     163        echo " -v No        : set verbosity level for compilation [0-3]"; 
     164        echo " -k 0/1       : used cpp keys check (default = 1 -> check activated)"; 
     165   echo " -t dir       : temporary directory for compilation" 
     166   echo ""; 
     167}}} 
    150168 
    151169=== Default behaviour 
     
    161179 
    162180=== Examples 
    163 [[IncludeSource(NEMO/releases/release-3.6/NEMOGCM/CONFIG/makenemo,  /CONFIG/makenemo, start=145, end=166, mimetype=application/x-shellscript, line_numbers=0)]] 
     181 
     182{{{#!bash 
     183   echo "Example to install a new configuration MY_CONFIG"; 
     184   echo "with OPA_SRC and LIM_SRC_2 "; 
     185   echo "makenemo -n MY_CONFIG -d \"OPA_SRC LIM_SRC_2\""; 
     186   echo ""; 
     187   echo "Available configurations :"; cat ${CONFIG_DIR}/cfg.txt; 
     188   echo ""; 
     189        echo "Available unsupported (external) configurations :"; cat ${CONFIG_DIR}/uspcfg.txt; 
     190   echo ""; 
     191   echo "Example to remove bad configuration "; 
     192   echo "./makenemo -n MY_CONFIG clean_config"; 
     193   echo ""; 
     194   echo "Example to clean "; 
     195   echo "./makenemo clean"; 
     196   echo ""; 
     197   echo "Example to list the available keys of a CONFIG "; 
     198   echo "./makenemo list_key"; 
     199   echo ""; 
     200   echo "Example to add and remove keys"; 
     201   echo "./makenemo add_key \"key_iomput key_mpp_mpi\" del_key \"key_agrif\" "; 
     202   echo ""; 
     203   echo "Example to add and remove keys for a new configuration, and do not compile"; 
     204   echo "./makenemo -n MY_CONFIG -j0 add_key \"key_iomput key_mpp_mpi\" del_key \"key_agrif\" "; 
     205}}} 
    164206 
    165207== Running the model