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 – NEMO
wiki:Developers/Validation/trunk_perfs

Version 1 (modified by smasson, 3 years ago) (diff)

--

Get the code

# my login
me=smasson
# svn path to NEMO trunk
svnpath=svn+ssh://${me}@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/NEMO/trunk
# get the revision number of the HEAD
rev=$( svn info $svnpath | grep "Last Changed Rev" | sed -e "s/.*: *//" )
# directory name given to the local trunk
dirnemo=trunk_test_perf_${rev}
# checkout the trunk into $dirnemo
svn co $svnpath
svn+ssh://smasson@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/NEMO/trunk $dirnemo
#
cd $dirnemo
#

Change namelist_*ref

# change cfgs/SHARED/namelist_ref
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
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
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

# change namelist_cfg
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
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
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
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
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
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