| 1 | == Job preparation for PALM self nesting == |
| 2 | The following example provide a step-by-step tutorial on how to set up a nesting system with one parent (root) domain and two child domains. |
| 3 | |
| 4 | 1. Prepare parameter files for all domains, e.g. topography files or static drivers and separate each file for each domain: |
| 5 | {{{ |
| 6 | testrun_p3d (root/parent domain) |
| 7 | testrun_p3d_N02 (child domain 1) |
| 8 | testrun_p3d_N03 (child domain 2) |
| 9 | testrun_topo |
| 10 | testrun_topo_N02 |
| 11 | testrun_topo_N03 |
| 12 | testrun_static |
| 13 | testrun_static_N02 |
| 14 | testrun_static_N03 |
| 15 | }}} |
| 16 | Note that numbering of the child domains must start with "02" as "01" is internally reserved for the root domain. |
| 17 | |
| 18 | 2. The nesting system is activated by specifying a {{{&nesting_parameters}}} NAMELIST in the _p3d file of the '''root domain''', e.g.: |
| 19 | {{{ |
| 20 | &nesting_parameters domain_layouts = 'root domain', 1, -1, 24, 0.0, 0.0, |
| 21 | 'child domain 1', 2, 1, 24, 100.0, 100.0, |
| 22 | 'child domain 2', 3, 2, 24, 200.0, 200.0, |
| 23 | nesting_datatransfer_mode = 'mixed', |
| 24 | nesting_mode = 'two-way', |
| 25 | / |
| 26 | }}} |
| 27 | For details on the parameters, see [wiki:doc/app/nestpar#nestpar &nesting_parameters]. |
| 28 | |
| 29 | 3. No additional file connection statements for the child domains are required as long as the suffix * is set: |
| 30 | {{{ |
| 31 | #---------------------------------------------------------------------------- |
| 32 | # List of input-files for nested model runs |
| 33 | #---------------------------------------------------------------------------- |
| 34 | PARIN in:tr d3# $base_data/$run_identifier/INPUT _p3d* |
| 35 | #---------------------------------------------------------------------------- |
| 36 | }}} |
| 37 | 4. Execute {{{palmrun}}} and specify the nesting input files, i.e., |
| 38 | {{{ |
| 39 | palmrun -r testrun -a "d3#" -X 72 ... |
| 40 | }}} |
| 41 | Make sure that the total number of PEs (here 72) the sum of the PEs allocated for the individual domains (3 x 24). |