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