source: trunk/LMDZ.GENERIC/deftank/edu/run.exe @ 1330

Last change on this file since 1330 was 1330, checked in by aslmd, 10 years ago

LMDZ.GENERIC. a few corrections in edu version (within deftank).

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#! /bin/bash
2
3######
4nx=8
5ny=8
6nz=16
7tr=7
8######
9
10thisfolder=$PWD
11wheresource=$PWD/MODELES/
12b1=32
13b2=36
14b1=3 # recompile with full if you changed this
15b2=2 # recompile with full if you changed this
16b1=1 # recompile with full if you changed this
17b2=1 # recompile with full if you changed this
18
19echo "*** COMPILATION GCM *** ne pas interrompre ***"
20cd $wheresource/LMDZ.COMMON ; \rm gcm.e
21makelmdz -cpp NODYN -d $nx"x"$ny"x"$nz -b $b1"x"$b2 -t $tr -s 1 -p generic -arch gfortran gcm > logcompilegcm 2> logcompilegcm
22if [[ ! -f gcm.e ]] ; then
23  echo "Il y a eu un probleme. Voir : " $PWD/logcompilegcm ; exit
24fi
25
26echo "*** COMPILATION NEWSTART *** ne pas interrompre ***"
27cd $wheresource/LMDZ.GENERIC ; \rm newstart.e
28makegcm_gfortran_local -d $nx"x"$ny"x"$nz -debug newstart > logcompilerestart 2> logcompilerestart
29if [[ ! -f newstart.e ]] ; then
30  echo "Il y a eu un probleme. Voir : " $PWD/logcompilenewstart ; exit
31fi
32
33echo "*** INITIALISATION ***"
34cd $thisfolder/INIT ; \rm restartfi.nc restart.nc > /dev/null 2> /dev/null
35./newstart.e < planet_start > log_newstart 2> log_newstart
36if [[ ! -f restart.nc ]] ; then
37  echo "Il y a eu un probleme. Voir : " $PWD/log_newstart ; exit
38fi
39
40echo "*** SIMULATION ***"
41cd $thisfolder/RUN ; \rm resultat.nc > /dev/null 2> /dev/null
42time gcm.e | tee log_gcm | grep "Ls ="
43#time gcm.e > /dev/null 2> /dev/null
44#time gcm.e #| grep "WRITE"
45mv diagfi.nc ../resultat.nc
46
47echo "*** FIN ***"
Note: See TracBrowser for help on using the repository browser.