batch_bio_pbs.sh 971 Bytes
#!/bin/bash

#-------------------depth------------------------------------
diffu="1e-6 1e-4 1e-3 1e-2"
name_exp=('1depth10' '1depth20' '1depth100' '1depth200'
	'2depth10' '2depth20' '2depth100' '2depth200'
'3depth10' '3depth20' '3depth100' '3depth200'
'4depth10' '4depth20' '4depth100' '4depth200')

let "count1=0"
let "count2=0"
for b in $diffu
do

prof="10 20 100 200"

let "count=0"
for a in $prof
do


	cat batch_bio_parameter.txt | sed \
       -e  "s/mubatch/2.3148e-5/g" \
       -e  "s/vmaxbatch/9.3870e-6/g" \
       -e  "s/nutbatch/5e-3/g" \
     > bio_parameter.nml

     mv bio_parameter.nml ../nml/

     cat batch_model_parameter.txt | sed \
       -e  "s/depthbatch/$a/g" \
       -e  "s/nme/${name_exp[$count2]}/g" \
       -e  "s/diffbatch/$b/g" \
     > model_parameter.nml

     mv model_parameter.nml ../nml/
     qsub ./lanceurpbs.sh

     sleep 5s


     let "count=count+1"
     let "count2=count2+1"
done
     let "count1=count1+1"
done
sleep 3h