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 (diff) – NEMO

Changes between Version 6 and Version 7 of Developers/Validation/trunk_perfs/do_trunk_perfs


Ignore:
Timestamp:
2020-11-23T16:44:40+01:00 (4 years ago)
Author:
smasson
Comment:

--

Legend:

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

    v6 v7  
    104104 
    105105{{{#!sh 
    106 ff=cfgs/ORCA2_ICE_XIOSAT/EXP00/context_nemo.xml 
    107 sed -e '/pisces/d' $ff > tmp$$ 
    108 mv tmp$$ $ff 
     106# no pisces lines in context_nemo.xml if not a PISCES directory 
     107for ff in ( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml |  grep -v "_PISCES" ) 
     108do 
     109    sed -e '/pisces/d' $ff > tmp$$ 
     110    mv tmp$$ $ff 
     111done 
     112# no ice lines in context_nemo.xml if not a ICE directory 
     113for ff in ( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml |  grep -v "_ICE" ) 
     114do 
     115    sed -e '/ice/d' $ff > tmp$$ 
     116    mv tmp$$ $ff 
     117done 
    109118 
    110 ff=cfgs/ORCA2_XIOSAT/EXP00/context_nemo.xml 
    111 sed -e '/_pisces/d' -e '/_ice/d' $ff > tmp$$ 
    112 mv tmp$$ $ff 
     119# optional additional cleaning... 
     120# 
     121#no pisces files if not a PISCES directory 
     122rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*pisces* | grep -v "_PISCES" ) 
     123#no top files if not a PISCES directory 
     124rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*top* | grep -v "_PISCES" ) 
     125#no ice files if not a ICE directory 
     126rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*ice* | grep -v "_ICE" ) 
    113127}}} 
    114128