Changeset 10552 for NEMO/trunk/doc/rst/source/setup.rst
- Timestamp:
- 2019-01-18T17:33:22+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/doc/rst/source/setup.rst
r10279 r10552 17 17 18 18 One can create a new configuration by duplicating one of the reference configurations 19 (``ORCA2_ LIM3_PISCES`` in the following example)20 21 .. code-block:: sh 22 23 makenemo –n 'ORCA2_ LIM3_PISCES_MINE' -r 'ORCA2_LIM3_PISCES'19 (``ORCA2_ICE_PISCES`` in the following example) 20 21 .. code-block:: sh 22 23 makenemo –n 'ORCA2_ICE_PISCES_MINE' -r 'ORCA2_ICE_PISCES' 24 24 25 25 Option 2: Duplicate with differences … … 27 27 28 28 Create and compile a new configuration based on a reference configuration 29 (``ORCA2_ LIM3_PISCES`` in the following example) but with different pre-processor options.29 (``ORCA2_ICE_PISCES`` in the following example) but with different pre-processor options. 30 30 For this either add ``add_key`` or ``del_key`` keys as required; e.g. 31 31 32 32 .. code-block:: sh 33 33 34 makenemo –n 'ORCA2_ LIM3_PISCES_MINE' -r 'ORCA2_LIM3_PISCES' del_key 'key_iomput' add_key 'key_xios'34 makenemo –n 'ORCA2_ICE_PISCES_MINE' -r 'ORCA2_ICE_PISCES' del_key 'key_iomput' add_key 'key_diahth' 35 35 36 36 Option 3: Use the SIREN tools to subset an existing model … … 65 65 This method is used by each of the reference configurations, 66 66 so that downloading their input files linked to their description can help. 67 Although starting from scratch it is advisable to create the directory structure to house your new configuration by67 Although starting from scratch, it is advisable to create the directory structure to house your new configuration by 68 68 duplicating the closest reference configuration to your target application. 69 69 For example, if your application requires both ocean ice and passive tracers, 70 then use the ``ORCA2_ LIM3_PISCES`` as template,70 then use the ``ORCA2_ICE_PISCES`` as template, 71 71 and execute following command to build your ``MY_NEW_CONFIG`` configuration: 72 72 73 73 .. code-block:: sh 74 74 75 makenemo –n 'MY_NEW_CONFIG' -r 'ORCA2_ LIM3_PISCES'75 makenemo –n 'MY_NEW_CONFIG' -r 'ORCA2_ICE_PISCES' 76 76 77 77 where ``MY_NEW_CONFIG`` can be substituted with a suitably descriptive name for your new configuration. … … 132 132 As a start, consider the case of starting a completely new ocean-only test case based on 133 133 the ``LOCK_EXCHANGE`` example. 134 [Note: we probably need an even more basic example than this with only one namelist and134 .. [Note: we probably need an even more basic example than this with only one namelist and 135 135 minimal changes to the usrdef modules] 136 136 … … 143 143 where the ``-t`` option has been used to locate the new configuration in the ``tests`` subdirectory 144 144 (it is recommended practice to keep full configurations and idealised cases clearly distinguishable). 145 This command will have created(amongst others) the following files and directories::145 This command will create (amongst others) the following files and directories:: 146 146 147 147 ./tests/MY_NEW_TEST: … … 211 211 configuration specific code has now been isolated in the usrdef modules. 212 212 In the case of these last two modules, they are activated only if an ORCA configuration is detected. 213 Currently this requires a specific integer variable named ``ORCA`` to be set in a ``domain_cfg.nc`` file.214 [Note: this would be less confusing if the cn_cfg string is read directly as a character attribue from213 Currently, this requires a specific integer variable named ``ORCA`` to be set in a ``domain_cfg.nc`` file. 214 .. [Note: this would be less confusing if the cn_cfg string is read directly as a character attribue from 215 215 the ``domain_cfg.nc`` ] 216 216 … … 222 222 they share common characteristics with your target application. 223 223 224 Whatever the starting point it should not require too many changes or additional lines of code to224 Whatever the starting point, it should not require too many changes or additional lines of code to 225 225 produce routines in ``./src/OCE/USR`` that define analytically the domain, 226 226 the initial state and the surface boundary conditions for your new configuration. … … 243 243 From version 4.0, the NEMO release includes a ``tests`` subdirectory containing available and 244 244 up to date test cases build by the community. 245 These will not be fully supported as is NEMO referencebut should provide a source of raw material.245 These will not be fully supported as are NEMO reference configurations, but should provide a source of raw material. 246 246 247 247 .. _here: http://prodn.idris.fr/thredds/catalog/ipsl_public/rron463/catalog.html?dataset=DatasetScanipsl_public/rron463/INPUT_SIREN.tar
Note: See TracChangeset
for help on using the changeset viewer.