New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Developers/Validation/trunk_perfs/do_trunk_perfs/step_by_step (diff) – NEMO

Changes between Initial Version and Version 1 of Developers/Validation/trunk_perfs/do_trunk_perfs/step_by_step


Ignore:
Timestamp:
2020-11-23T16:52:52+01:00 (3 years ago)
Author:
smasson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developers/Validation/trunk_perfs/do_trunk_perfs/step_by_step

    v1 v1  
     1== Change namelist_*ref == 
     2 
     3{{{#!sh 
     4# change cfgs/SHARED/namelist_ref (no IO without XIOS, remove run.stat, meshmask, add timing) 
     5sed -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$$ 
     11mv tmp$$ cfgs/SHARED/namelist_ref 
     12 
     13# change cfgs/SHARED/namelist_ice_ref (add an init file) 
     14sed -e "s/nn_iceini_file *=.*/nn_iceini_file = 1 /" \ 
     15    cfgs/SHARED/namelist_ice_ref > tmp$$ 
     16mv tmp$$ cfgs/SHARED/namelist_ice_ref 
     17 
     18# change cfgs/SHARED/namelist_pisces_ref (as in sette) 
     19sed -e "s/ln_varpar *=.*/ln_varpar = .false. /" \ 
     20    -e "s/ln_pisdmp *=.*/ln_pisdmp = .false. /" \ 
     21    cfgs/SHARED/namelist_pisces_ref > tmp$$ 
     22mv 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!!) 
     29ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_cfg 
     30sed -e "s/ln_icebergs *=.*/ln_icebergs = .false. /" $ff > tmp$$ 
     31mv tmp$$ $ff 
     32 
     33# change namelist_top_cfg (as in sette) 
     34ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_top_cfg 
     35sed -e "s/ln_trcdta *=.*/ln_trcdta = .false. /" $ff > tmp$$ 
     36mv tmp$$ $ff 
     37 
     38# change namelist_pisces_cfg (as in sette) 
     39ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_pisces_cfg 
     40sed -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$$ 
     44mv tmp$$ $ff 
     45 
     46# change file_def_nemo-oce.xml (suppress diag) 
     47ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-oce.xml 
     48sed -e '/file_group id="1m"/,/<\/file_group>/d' $ff > tmp$$ 
     49mv tmp$$ $ff 
     50 
     51# change file_def_nemo-ice.xml (suppress diag) 
     52ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-ice.xml 
     53sed -e '/name_suffix="_SBC_scalar"/,/<\/file>/d' $ff > tmp$$ 
     54mv tmp$$ $ff 
     55 
     56# change file_def_nemo-pisces.xml (suppress diag) 
     57ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-pisces.xml 
     58sed -e '/file_group id="1y"/,/<\/file_group>/d' $ff > tmp$$ 
     59mv tmp$$ $ff 
     60}}} 
     61 
     62== Compile the configurations code  == 
     63 
     64I 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 
     68There is the modules smasson uses on jean-zay [attachment:modules_jeanzay.sh] and irene [attachment:modules_irene.sh] 
     69 
     70{{{#!sh 
     71machine=... # 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 
     87for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml |  grep -v "_PISCES" ) 
     88do 
     89    sed -e '/pisces/d' $ff > tmp$$ 
     90    mv tmp$$ $ff 
     91done 
     92# no ice lines in context_nemo.xml if not a ICE directory 
     93for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml |  grep -v "_ICE" ) 
     94do 
     95    sed -e '/ice/d' $ff > tmp$$ 
     96    mv tmp$$ $ff 
     97done 
     98 
     99# optional additional cleaning... 
     100# 
     101#no pisces files if not a PISCES directory 
     102rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*pisces* | grep -v "_PISCES" ) 
     103#no top files if not a PISCES directory 
     104rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*top* | grep -v "_PISCES" ) 
     105#no ice files if not a ICE directory 
     106rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*ice* | grep -v "_ICE" ) 
     107}}}