/[MITgcm]/MITgcm_contrib/mlosch/optim_m1qn3/testbed/runscript.sh
ViewVC logotype

Contents of /MITgcm_contrib/mlosch/optim_m1qn3/testbed/runscript.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed May 2 12:27:42 2012 UTC (13 years, 2 months ago) by mlosch
Branch: MAIN
File MIME type: application/x-sh
simple testing environment for optim_m1qn3

1 #!/bin/bash
2 #
3
4 # $Header: $
5 # $Name: $
6
7 make scratch
8 make all
9
10 ./driver
11
12 COUNTER=0
13 while [ $COUNTER -lt 1000 ]; do
14 echo $COUNTER >| count.txt
15 echo The counter is $COUNTER
16 ./offline_driver >| output.txt
17 cat output.txt
18 stopper=`grep stoptheloop output.txt`
19 if [ "${#stopper}" -gt 0 ]; then
20 echo $stopper
21 break
22 fi
23 ./model
24 let COUNTER=COUNTER+1
25 done
26

  ViewVC Help
Powered by ViewVC 1.1.22