Changeset 10558 for NEMO/trunk/INSTALL.rst
- Timestamp:
- 2019-01-22T18:18:13+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/INSTALL.rst
r10557 r10558 1 ********************* 2 Install the framework 3 ********************* 1 ***************************** 2 Obtaining and installing NEMO 3 ***************************** 4 4 5 5 .. contents:: … … 163 163 Folder intended to contain your customised routines (modified from initial ones or new entire routines) 164 164 165 When you compile NEMO you will need to specify the following CPP keys:166 167 * key_iomput168 * key_mpp_mpi169 170 165 After successful execution of makenemo command, the executable called opa is created in the EXP00 directory (in the example above, the executable is created in CONFIG/MY_GYRE/EXP00). 171 More options 172 173 .. 174 .. literalinclude:: 166 167 More makenemo options 168 --------------------- 169 170 ``makenemo`` has several other options that can control which source files are selected and the operation 171 of the build process itself. These are: 172 173 .. code-block:: sh 174 175 Optional: 176 -d Set of new sub-components (space separated list from ./src directory) 177 -e Path for alternative patch location (default: 'MY_SRC' in configuration folder) 178 -h Print this help 179 -j Number of processes to compile (0: no build) 180 -n Name for new configuration 181 -s Path for alternative source location (default: 'src' root directory) 182 -t Path for alternative build location (default: 'BLD' in configuration folder) 183 -v Level of verbosity ([0-3]) 184 185 These options can be useful for maintaining several code versions with only minor differences but they 186 should be used sparingly. Note however the ``-j`` option which should be used more routinely to speed up 187 the build process. For example: 188 189 .. code-block:: sh 190 191 ./makenemo –m 'my_arch' –r GYRE -n 'MY_GYRE' -j 8 192 193 which will compile up to 8 modules simultaneously. 194 175 195 176 196 Default behaviour 177 197 ----------------- 178 198 179 At the first use, you need the -m option to specify the architecture configuration file (compiler and its options, routines and libraries to include), then for next compilation, it is assumed you will be using the same compiler. 180 If –n option is not specified, ORCA2_LIM is the default configuration used. 199 At the first use, you need the -m option to specify the architecture 200 configuration file (compiler and its options, routines and libraries to 201 include), then for next compilation, it is assumed you will be using the 202 same compiler. If the –n option is not specified the last compiled configuration 203 will be used. 181 204 182 205 Tools used during the process 183 206 ----------------------------- 184 207 185 186 187 208 * functions.sh : bash functions used by makenemo, for instance to create the WORK directory 209 * cfg.txt : text list of configurations and source directories 210 * bld.cfg : FCM rules to compile 188 211 189 212 Examples 190 213 -------- 214 215 .. code-block:: sh 191 216 192 217 echo "Example to install a new configuration MY_CONFIG"; … … 219 244 For the reference configurations, the EXP00 folder also contains the initial input files (namelists, \*xml files for the IOs…). If the configuration also needs NetCDF input files, this should be downloaded here from the corresponding tar file, see Users/Reference Configurations 220 245 221 cd 'MY_CONFIG'/EXP00 222 mpirun -n $NPROCS ./opa # $NPROCS is the number of processes ; mpirun is your MPI wrapper 246 .. code-block:: sh 247 248 cd 'MY_CONFIG'/EXP00 249 mpirun -n $NPROCS ./opa # $NPROCS is the number of processes ; mpirun is your MPI wrapper 250 223 251 224 252 Viewing and changing list of active CPP keys 225 253 ============================================ 226 254 227 For a given configuration (here called MY_CONFIG), the list of active CPP keys can be found in:: 228 229 NEMOGCM/CONFIG/'MYCONFIG'/cpp_'MY_CONFIG'.fcm 255 For a given configuration (here called MY_CONFIG), the list of active CPP keys can be found in: 256 257 .. code-block:: sh 258 259 NEMOGCM/CONFIG/'MYCONFIG'/cpp_'MY_CONFIG'.fcm 260 230 261 231 262 This text file can be edited to change the list of active CPP keys. Once changed, one needs to recompile opa executable using makenemo command in order for this change to be taken in account. 263 Note that most NEMO configurations will need to specify the following CPP keys: 264 265 * key_iomput 266 * key_mpp_mpi 267 232 268 233 269 .. _HDF5: http://www.hdfgroup.org/downloads/hdf5
Note: See TracChangeset
for help on using the changeset viewer.