Last change
on this file since 736 was
671,
checked in by emillour, 13 years ago
|
Generic GCM:
- Significant update on how the number of scatterers is managed:
Instead of having to manualy change 'nearkind' in radinc_h.F90, the
number of scatterers must now be set when compiling, using makegcm
"makegcm -s 1" for one scatterer or "makegcm -s 2" for two (e.g. dust
and water ice), default behaviour (ie not specifying -s #) is -s 1
Modified phystd/radinc_h.F90 , added directory phystd/scatterers
with script make_scatterers , and adapted makegcm* scripts.
EM
|
-
Property svn:executable set to
*
|
File size:
987 bytes
|
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 radiatively active species |
---|
22 | ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
23 | ! |
---|
24 | !----------------------------------------------------------------------- |
---|
25 | |
---|
26 | integer, parameter :: naerkind=$1 |
---|
27 | |
---|
28 | !----------------------------------------------------------------------- |
---|
29 | EOF |
---|
30 | |
---|
31 | else |
---|
32 | echo "$filename already exists!" |
---|
33 | fi |
---|
34 | |
---|
35 | # remove 'old' scatterers.h file and replace it with new one |
---|
36 | \rm -f ../scatterers.h |
---|
37 | tar cf - $filename | ( cd .. ; tar xf - ; mv $filename scatterers.h ) |
---|
38 | # line above is a trick to preserve time of creation of scatterers.# files |
---|
Note: See
TracBrowser
for help on using the repository browser.