Last change
on this file since 1242 was
1036,
checked in by emillour, 11 years ago
|
Mars GCM: (a first step towards using parallel dynamics)
- IMPORTANT CHANGE: Implemented dynamic tracers. It is no longer necessary to
compile the model with the '-t #' option, number of tracers is simply read
from tracer.def file (as before).
Adapted makegcm_* scripts (and co.) accordingly.
Technical aspects of the switch to dynamic tracers are:
- advtrac.h (in dyn3d) removed and replaced by module infotrac.F
- tracer.h (in phymars) removed and replaced by module tracer_mod.F90 (which
contains nqmx, the number of tracers, etc. and can be used anywhere in the
physics).
- Included some side cleanups: removed unused files (in dyn3d) anldoppler2.F,
anl_mcdstats.F and anl_stats-diag.F, and all the unecessary dimensions.*
files in grid/dimension.
- Checked that changes are clean and that GCM yields identical results (in
debug mode) to previous svn version.
EM
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | for i in $* ; do |
---|
3 | list=$list.$i |
---|
4 | done |
---|
5 | fichdim=dimensions${list} |
---|
6 | |
---|
7 | |
---|
8 | if [ ! -f $fichdim ] ; then |
---|
9 | # si le fichier de dimensions n'existe pas, on le cree |
---|
10 | |
---|
11 | if [ $# -ge 3 ] ; then |
---|
12 | im=$1 |
---|
13 | jm=$2 |
---|
14 | lm=$3 |
---|
15 | n2=$1 |
---|
16 | # ndm=1 |
---|
17 | |
---|
18 | # while [ "$n2" -gt 2 ]; do |
---|
19 | # n2=`expr $n2 / 2` |
---|
20 | # ndm=`expr $ndm + 1` |
---|
21 | # done |
---|
22 | # if [ "$n2" != 2 ] ; then |
---|
23 | # echo le nombre de longitude doit etre une puissance de 2 |
---|
24 | # exit |
---|
25 | # fi |
---|
26 | |
---|
27 | else if [ $# -ge 2 ] ; then |
---|
28 | im=1 |
---|
29 | jm=$1 |
---|
30 | lm=$2 |
---|
31 | # ndm=1 |
---|
32 | else if [ $# -ge 1 ] ; then |
---|
33 | im=1 |
---|
34 | jm=1 |
---|
35 | lm=$1 |
---|
36 | # ndm=1 |
---|
37 | else |
---|
38 | echo il faut au moins une dimension |
---|
39 | exit |
---|
40 | fi |
---|
41 | fi |
---|
42 | fi |
---|
43 | |
---|
44 | cat << EOF > $fichdim |
---|
45 | !----------------------------------------------------------------------- |
---|
46 | ! INCLUDE 'dimensions.h' |
---|
47 | ! |
---|
48 | ! dimensions.h contient les dimensions du modele |
---|
49 | ! ndm est tel que iim=2**ndm |
---|
50 | !----------------------------------------------------------------------- |
---|
51 | |
---|
52 | INTEGER, parameter :: iim=$im |
---|
53 | INTEGER, parameter :: jjm=$jm |
---|
54 | INTEGER, parameter :: llm=$lm |
---|
55 | |
---|
56 | !----------------------------------------------------------------------- |
---|
57 | EOF |
---|
58 | fi |
---|
59 | |
---|
60 | \rm ../dimensions.h |
---|
61 | tar cf - $fichdim | ( cd .. ; tar xf - ; mv $fichdim dimensions.h ) |
---|
Note: See
TracBrowser
for help on using the repository browser.