/[MITgcm]/MITgcm/verification/tutorial_global_oce_optim/input_ad/cycsh
ViewVC logotype

Contents of /MITgcm/verification/tutorial_global_oce_optim/input_ad/cycsh

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


Revision 1.2 - (show annotations) (download)
Fri Feb 8 16:47:19 2008 UTC (16 years, 4 months ago) by dfer
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65d, checkpoint65e, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59o, checkpoint59n, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.1: +2 -4 lines
Minor adjustments.

1 #!/bin/csh
2 set name=tutorial
3 set itermax=15
4 module load ifc
5
6 set ite=`egrep 'optimcycle' data.optim | sed 's/ optimcycle=//'| sed 's/,$//'`
7 set i=`expr $ite + 1`
8 while ( $i <= $itermax )
9 set ii=`add0upto3c $i`
10 echo "Beginning of iteration $ii"
11 cp -p OPTIM/ctrlhflux_tut_MITgcm.opt0$ii .
12 set ite=`expr $i - 1`
13 sed "s/ optimcycle=$ite/ optimcycle=$i/" data.optim > TTT.tmp
14 mv -f TTT.tmp data.optim
15 set fich=output$name$ii
16 echo "Running mitcgm_ad: iteration $ii"
17 ./mitgcmuv_ad > $fich
18 egrep optimcycle data.optim >> fcost$name
19 grep "objf_temp_tut(" $fich >> fcost$name
20 grep "objf_hflux_tut(" $fich >> fcost$name
21 egrep 'global fc =' $fich >> fcost$name
22 echo Cleaning
23 \rm tapelev*
24 set direc=run$name$ii
25 mkdir $direc
26 mv *.data *.meta $direc
27 mv ctrlhflux_tut_MITgcm.opt0$ii $fich $direc
28 mv costhflux_tut_MITgcm.opt0$ii OPTIM/
29 echo "Line-search: iteration $ii"
30 cd OPTIM/
31 egrep optimcycle data.optim
32 ./optim.x > std$ii
33 cd ..
34 set i=`expr $i + 1`
35 end

  ViewVC Help
Powered by ViewVC 1.1.22