| 1 | == Change namelist_*ref == |
| 2 | |
| 3 | {{{#!sh |
| 4 | # change cfgs/SHARED/namelist_ref (no IO without XIOS, remove run.stat, meshmask, add timing) |
| 5 | sed -e "s/nn_stock *=.*/nn_stock = -1 /" \ |
| 6 | -e "s/nn_write *=.*/nn_write = -1 /" \ |
| 7 | -e "s/runstat *=.*/runstat = .false. /" \ |
| 8 | -e "s/ln_meshmask *=.*/ln_meshmask = .false. /" \ |
| 9 | -e "s/ln_timing *=.*/ln_timing = .true. /" \ |
| 10 | cfgs/SHARED/namelist_ref > tmp$$ |
| 11 | mv tmp$$ cfgs/SHARED/namelist_ref |
| 12 | |
| 13 | # change cfgs/SHARED/namelist_ice_ref (add an init file) |
| 14 | sed -e "s/nn_iceini_file *=.*/nn_iceini_file = 1 /" \ |
| 15 | cfgs/SHARED/namelist_ice_ref > tmp$$ |
| 16 | mv tmp$$ cfgs/SHARED/namelist_ice_ref |
| 17 | |
| 18 | # change cfgs/SHARED/namelist_pisces_ref (as in sette) |
| 19 | sed -e "s/ln_varpar *=.*/ln_varpar = .false. /" \ |
| 20 | -e "s/ln_pisdmp *=.*/ln_pisdmp = .false. /" \ |
| 21 | cfgs/SHARED/namelist_pisces_ref > tmp$$ |
| 22 | mv tmp$$ cfgs/SHARED/namelist_pisces_ref |
| 23 | }}} |
| 24 | |
| 25 | == Change ORCA2_ICE_PISCES namelist_*cfg and file_def_nemo-*.xml == |
| 26 | |
| 27 | {{{#!sh |
| 28 | # change namelist_cfg (suppress icebergs!!) |
| 29 | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_cfg |
| 30 | sed -e "s/ln_icebergs *=.*/ln_icebergs = .false. /" $ff > tmp$$ |
| 31 | mv tmp$$ $ff |
| 32 | |
| 33 | # change namelist_top_cfg (as in sette) |
| 34 | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_top_cfg |
| 35 | sed -e "s/ln_trcdta *=.*/ln_trcdta = .false. /" $ff > tmp$$ |
| 36 | mv tmp$$ $ff |
| 37 | |
| 38 | # change namelist_pisces_cfg (as in sette) |
| 39 | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_pisces_cfg |
| 40 | sed -e "s/ln_ironsed *=.*/ln_ironsed = .false. /" \ |
| 41 | -e "s/ln_ironice *=.*/ln_ironice = .false. /" \ |
| 42 | -e "s/ln_hydrofe *=.*/ln_hydrofe = .false. /" \ |
| 43 | $ff > tmp$$ |
| 44 | mv tmp$$ $ff |
| 45 | |
| 46 | # change file_def_nemo-oce.xml (suppress diag) |
| 47 | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-oce.xml |
| 48 | sed -e '/file_group id="1m"/,/<\/file_group>/d' $ff > tmp$$ |
| 49 | mv tmp$$ $ff |
| 50 | |
| 51 | # change file_def_nemo-ice.xml (suppress diag) |
| 52 | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-ice.xml |
| 53 | sed -e '/name_suffix="_SBC_scalar"/,/<\/file>/d' $ff > tmp$$ |
| 54 | mv tmp$$ $ff |
| 55 | |
| 56 | # change file_def_nemo-pisces.xml (suppress diag) |
| 57 | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-pisces.xml |
| 58 | sed -e '/file_group id="1y"/,/<\/file_group>/d' $ff > tmp$$ |
| 59 | mv tmp$$ $ff |
| 60 | }}} |
| 61 | |
| 62 | == Compile the configurations code == |
| 63 | |
| 64 | I propose to start with |
| 65 | - ORCA2, ORCA2_ICE, ORCA2_ICE_PISCES. |
| 66 | - one run with XIOS attached (XIOSAT) and one run without XIOS (NOXIOS) |
| 67 | |
| 68 | There is the modules smasson uses on jean-zay [attachment:modules_jeanzay.sh] and irene [attachment:modules_irene.sh] |
| 69 | |
| 70 | {{{#!sh |
| 71 | machine=... # for example X64_IRENE, X64_JEANZAY |
| 72 | # ORCA2_ICE_PISCES |
| 73 | ./makenemo -m $machine -n ORCA2_ICE_PISCES_XIOSAT -r ORCA2_ICE_PISCES -j 8 |
| 74 | ./makenemo -m $machine -n ORCA2_ICE_PISCES_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_iomput" |
| 75 | # ORCA2_ICE |
| 76 | ./makenemo -m $machine -n ORCA2_ICE_XIOSAT -r ORCA2_ICE_PISCES -j 8 del_key "key_top" |
| 77 | ./makenemo -m $machine -n ORCA2_ICE_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_iomput" |
| 78 | # ORCA2 |
| 79 | ./makenemo -m $machine -n ORCA2_XIOSAT -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_si3" |
| 80 | ./makenemo -m $machine -n ORCA2_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_si3 key_iomput" |
| 81 | }}} |
| 82 | |
| 83 | == Some cleaning... == |
| 84 | |
| 85 | {{{#!sh |
| 86 | # no pisces lines in context_nemo.xml if not a PISCES directory |
| 87 | for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml | grep -v "_PISCES" ) |
| 88 | do |
| 89 | sed -e '/pisces/d' $ff > tmp$$ |
| 90 | mv tmp$$ $ff |
| 91 | done |
| 92 | # no ice lines in context_nemo.xml if not a ICE directory |
| 93 | for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml | grep -v "_ICE" ) |
| 94 | do |
| 95 | sed -e '/ice/d' $ff > tmp$$ |
| 96 | mv tmp$$ $ff |
| 97 | done |
| 98 | |
| 99 | # optional additional cleaning... |
| 100 | # |
| 101 | #no pisces files if not a PISCES directory |
| 102 | rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*pisces* | grep -v "_PISCES" ) |
| 103 | #no top files if not a PISCES directory |
| 104 | rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*top* | grep -v "_PISCES" ) |
| 105 | #no ice files if not a ICE directory |
| 106 | rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*ice* | grep -v "_ICE" ) |
| 107 | }}} |