Changeset 14710


Ignore:
Timestamp:
2021-04-14T10:00:50+02:00 (2 months ago)
Author:
andmirek
Message:

Ticket #2655 changes in batch script to add comma ater logical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_r14244_crayftn_877/BATCH_TEMPLATE/batch-XC40_METO

    r12474 r14710  
    5757# 
    5858  cd $EXE_DIR 
     59 
     60#add comma after logical 
     61for nml in `find ./ -name '*namelist_*'` 
     62do 
     63chk=$(grep -c -i -e"= *.false.," -e"= *.true.," $nml) 
     64if test $chk -eq 0 ; then 
     65echo "Changing : "$nml 
     66ed - $nml << EOF 
     67%s/=\( *\).false./=\1.false.,/ 
     68w 
     69q 
     70EOF 
     71ed - $nml << EOF 
     72%s/=\( *\).FALSE./=\1.FALSE.,/ 
     73w 
     74q 
     75EOF 
     76ed - $nml << EOF 
     77%s/=\( *\).true./=\1.true.,/ 
     78w 
     79q 
     80EOF 
     81ed - $nml << EOF 
     82%s/=\( *\).TRUE./=\1.TRUE.,/ 
     83w 
     84q 
     85EOF 
     86else 
     87echo $nml " may have already been processed: "$chk" lines already correct" 
     88fi 
     89done 
     90#end add comma after logical 
    5991  echo Directory is `pwd` 
    6092   
Note: See TracChangeset for help on using the changeset viewer.