== Change namelist_*ref == {{{#!sh # change cfgs/SHARED/namelist_ref (no IO without XIOS, remove run.stat, meshmask, add timing) sed -e "s/nn_stock *=.*/nn_stock = -1 /" \ -e "s/nn_write *=.*/nn_write = -1 /" \ -e "s/runstat *=.*/runstat = .false. /" \ -e "s/ln_meshmask *=.*/ln_meshmask = .false. /" \ -e "s/ln_timing *=.*/ln_timing = .true. /" \ cfgs/SHARED/namelist_ref > tmp$$ mv tmp$$ cfgs/SHARED/namelist_ref # change cfgs/SHARED/namelist_ice_ref (add an init file) sed -e "s/nn_iceini_file *=.*/nn_iceini_file = 1 /" \ cfgs/SHARED/namelist_ice_ref > tmp$$ mv tmp$$ cfgs/SHARED/namelist_ice_ref # change cfgs/SHARED/namelist_pisces_ref (as in sette) sed -e "s/ln_varpar *=.*/ln_varpar = .false. /" \ -e "s/ln_pisdmp *=.*/ln_pisdmp = .false. /" \ cfgs/SHARED/namelist_pisces_ref > tmp$$ mv tmp$$ cfgs/SHARED/namelist_pisces_ref }}} == Change ORCA2_ICE_PISCES namelist_*cfg and file_def_nemo-*.xml == {{{#!sh # change namelist_cfg (suppress icebergs!!) ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_cfg sed -e "s/ln_icebergs *=.*/ln_icebergs = .false. /" $ff > tmp$$ mv tmp$$ $ff # change namelist_top_cfg (as in sette) ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_top_cfg sed -e "s/ln_trcdta *=.*/ln_trcdta = .false. /" $ff > tmp$$ mv tmp$$ $ff # change namelist_pisces_cfg (as in sette) ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_pisces_cfg sed -e "s/ln_ironsed *=.*/ln_ironsed = .false. /" \ -e "s/ln_ironice *=.*/ln_ironice = .false. /" \ -e "s/ln_hydrofe *=.*/ln_hydrofe = .false. /" \ $ff > tmp$$ mv tmp$$ $ff # change file_def_nemo-oce.xml (suppress diag) ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-oce.xml sed -e '/file_group id="1m"/,/<\/file_group>/d' $ff > tmp$$ mv tmp$$ $ff # change file_def_nemo-ice.xml (suppress diag) ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-ice.xml sed -e '/name_suffix="_SBC_scalar"/,/<\/file>/d' $ff > tmp$$ mv tmp$$ $ff # change file_def_nemo-pisces.xml (suppress diag) ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-pisces.xml sed -e '/file_group id="1y"/,/<\/file_group>/d' $ff > tmp$$ mv tmp$$ $ff }}} == Compile the configurations code == I propose to start with - ORCA2, ORCA2_ICE, ORCA2_ICE_PISCES. - one run with XIOS attached (XIOSAT) and one run without XIOS (NOXIOS) There is the modules smasson uses on jean-zay [attachment:modules_jeanzay.sh] and irene [attachment:modules_irene.sh] {{{#!sh machine=... # for example X64_IRENE, X64_JEANZAY # ORCA2_ICE_PISCES ./makenemo -m $machine -n ORCA2_ICE_PISCES_XIOSAT -r ORCA2_ICE_PISCES -j 8 ./makenemo -m $machine -n ORCA2_ICE_PISCES_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_iomput" # ORCA2_ICE ./makenemo -m $machine -n ORCA2_ICE_XIOSAT -r ORCA2_ICE_PISCES -j 8 del_key "key_top" ./makenemo -m $machine -n ORCA2_ICE_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_iomput" # ORCA2 ./makenemo -m $machine -n ORCA2_XIOSAT -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_si3" ./makenemo -m $machine -n ORCA2_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_si3 key_iomput" }}} == Some cleaning... == {{{#!sh # no pisces lines in context_nemo.xml if not a PISCES directory for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml | grep -v "_PISCES" ) do sed -e '/pisces/d' $ff > tmp$$ mv tmp$$ $ff done # no ice lines in context_nemo.xml if not a ICE directory for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml | grep -v "_ICE" ) do sed -e '/ice/d' $ff > tmp$$ mv tmp$$ $ff done # optional additional cleaning... # #no pisces files if not a PISCES directory rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*pisces* | grep -v "_PISCES" ) #no top files if not a PISCES directory rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*top* | grep -v "_PISCES" ) #no ice files if not a ICE directory rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*ice* | grep -v "_ICE" ) }}}