Last change
on this file since 357 was
148,
checked in by emillour, 13 years ago
|
Mars GCM:
Significant update on how the number of scatterers is managed:
Instead of having to manualy change 'nearkind' in dimradmars.h, the
number of scatterers must now be set when compiling, using makegcm
"makegcm -s 1" for one scatterer (dust) or "makegcm -s 2" (e.g. dust
and water ice), default behaviour (ie not specifying -s #) is -s 1
Modified phymars/dimradmars.h , added directory phymars/scatterers
with script make_scatterers , and adapted makegcm* scripts.
also removed some superfluous files (tmp, tmp77, ...).
EM
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # sanity check: do we have the required argument ? |
---|
4 | if (( $# != 1 )) |
---|
5 | then |
---|
6 | echo "Wrong number of parameters in $0 !!!" |
---|
7 | echo " Usage:" |
---|
8 | echo " $0 num" |
---|
9 | echo " where num is the number of scatterers" |
---|
10 | exit |
---|
11 | fi |
---|
12 | |
---|
13 | filename=scatterers.$1 |
---|
14 | |
---|
15 | if [ ! -f $filename ] ; then |
---|
16 | # if the file doesn't exist, we create it |
---|
17 | cat << EOF > $filename |
---|
18 | !----------------------------------------------------------------------- |
---|
19 | ! INCLUDE 'scatterers.h' |
---|
20 | ! |
---|
21 | ! Number of kind of tracer radiative properties |
---|
22 | ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
23 | ! (ex: naerkind=1 if you use one dust mode without ice ...) |
---|
24 | ! (ex: naerkind=2 if you use one dust mode and active ice ...) |
---|
25 | !----------------------------------------------------------------------- |
---|
26 | |
---|
27 | integer, parameter :: naerkind=$1 |
---|
28 | |
---|
29 | !----------------------------------------------------------------------- |
---|
30 | EOF |
---|
31 | |
---|
32 | else |
---|
33 | echo "$filename already exists!" |
---|
34 | fi |
---|
35 | |
---|
36 | # remove 'old' scatterers.h file and replace it with new one |
---|
37 | \rm -f ../scatterers.h |
---|
38 | tar cf - $filename | ( cd .. ; tar xf - ; mv $filename scatterers.h ) |
---|
39 | # line above is a trick to preserve time of creation of scatterers.# files |
---|
Note: See
TracBrowser
for help on using the repository browser.