Commit 0cd08a07dff94f722ccd4c5490edc7818e6212f9

Authored by dumoda01
1 parent e69ad1fa
Exists in master and in 1 other branch snow

Ajout de script batch_???.sh pour differentes applications.

scripts/shell/batch_airsea.sh 0 → 100755
... ... @@ -0,0 +1,70 @@
  1 +#!/bin/bash
  2 +
  3 +export EXPDIR=$(pwd)
  4 +echo $EXPDIR
  5 +
  6 +if [ ! airsea.mal ] || [ ! gotmrun.mal ]
  7 +then
  8 + echo " ERROR : .mal files missing"
  9 + exit
  10 +else
  11 +
  12 +echo "-----------------------------------------------------"
  13 +echo " batch_airsea.sh"
  14 +echo "-----------------------------------------------------"
  15 +
  16 +
  17 +# Parameters for the forcings
  18 +
  19 +
  20 +count=0
  21 +
  22 +for file in narr_momentum_*.dat
  23 +do
  24 +
  25 +count=`expr $count + 1`
  26 +count=`expr 000$count | tail -3c`
  27 +#count=`expr 000$count | tail -8c`
  28 +echo $count
  29 +
  30 +if [ -f airsea.nml ]
  31 +then
  32 + rm -f airsea.nml
  33 +fi
  34 +
  35 +cat airsea.mal | sed \
  36 + -e "s/heatfile/narr_heatflux_2008_$count/g" \
  37 + > airsea.nml
  38 +
  39 +if [ -f airsea.nml ]
  40 +then
  41 + echo " airsea.nml created"
  42 +fi
  43 +
  44 +if [ -f gotmrun.nml ]
  45 +then
  46 + rm -f gotmrun.nml
  47 +fi
  48 +
  49 +cat gotmrun.mal | sed \
  50 + -e "s/experiment_name/$count/g" \
  51 + > gotmrun.nml
  52 +
  53 +if [ -f gotmrun.nml ]
  54 +then
  55 + echo " gotmrun.nml created"
  56 +fi
  57 +
  58 +strt=`date +%H:%M:%S`
  59 +echo " started at "$strt
  60 +
  61 +#./gotm_prod_IFORT >& $count.out
  62 +
  63 +end=`date +%H:%M:%S`
  64 +echo " ended at "$end
  65 +
  66 +done
  67 +
  68 +fi
  69 +
  70 +exit
... ...
scripts/shell/batch.sh renamed to scripts/shell/batch_obs.sh