Last change
on this file since 2955 was
1441,
checked in by emillour, 10 years ago
|
Updates in common dynamics (seq and ) to keep up with updates
in LMDZ5 (up to LMDZ5 trunk, rev 2250):
- compilation:
- added test in grid/dimension/makdim to check that # of longitudes
is a multiple of 8
Bug correction concerning zoom (cf LMDZ5 rev 2218)
- coefpoly.F becomes coefpoly_m.F90 (in misc)
- fxhyp.F => fxhyp_m.F90 , fyhyp.F => fyhyp_m.F90
- new routines for zoom: invert_zoom_x_m.F90 and principal_cshift_m.F90
- inigeom.F adapted to new zoom definition routines
- fluxstokenc.F : got rid of calls to initial0()
- dyn3d:
- advtrac.F90 : got rid of calls to initial0()
- conf_gcm.F90 : cosmetic changes and change in default dzoomx,dzoomy values
- guide_mod.F90 : followed updates from Earth Model
- gcm.F is now gcm.F90
- dyn3dpar:
- advtrac_p.F90, covcont_p.F90, mod_hallo.F90 : cosmetic changes
- conf_gcm.F90 : cosmetic and changed in default dzoomx,dzoomy values
- parallel_lmdz.F90 : updates to keep up with Earth model
- misc:
- arth.F90 becomes arth_m.F90
- wxios.F90 updated wrt Earth model changes
- nrtype.F90 and coefpoly_m.F90 added
- ran1.F, sort.F, minmax.F, minmax2.F, juldate.F moved over from dyn3d_common
EM
|
File size:
1.7 KB
|
Rev | Line | |
---|
[492] | 1 | #!/bin/bash |
---|
| 2 | #set -xv |
---|
| 3 | |
---|
| 4 | # sanity check: do we have the required argument ? |
---|
| 5 | if (( $# < 1 )) || (( $# > 3 )) |
---|
| 6 | then |
---|
| 7 | echo "Wrong number of parameters in $0 !!!" |
---|
| 8 | echo " Usage:" |
---|
| 9 | echo " $0 [im] [jm] lm" |
---|
| 10 | echo " where im, jm and lm are the dimensions" |
---|
[1441] | 11 | exit 1 |
---|
[492] | 12 | fi |
---|
| 13 | |
---|
[1441] | 14 | if (($1 % 8 != 0)) && (( $# == 3 )) |
---|
| 15 | then |
---|
| 16 | echo "The number of longitudes must be a multiple of 8." |
---|
| 17 | echo "See the files dyn3d/groupe.F and dyn3dpar/groupe_p.F." |
---|
| 18 | exit 1 |
---|
| 19 | fi |
---|
| 20 | |
---|
[492] | 21 | # build "fichnom", the relevant 'dimensions.im.jm.lm' file name |
---|
| 22 | for i in $* |
---|
| 23 | do |
---|
| 24 | list=$list.$i |
---|
[1] | 25 | done |
---|
| 26 | fichdim=dimensions${list} |
---|
| 27 | |
---|
[492] | 28 | if [ ! -f $fichdim ] |
---|
| 29 | then |
---|
| 30 | # echo "$fichdim does not exist" |
---|
[1] | 31 | |
---|
[492] | 32 | # assign values of im, jm and lm |
---|
| 33 | if [ $# -ge 3 ] |
---|
| 34 | then |
---|
| 35 | im=$1 |
---|
| 36 | jm=$2 |
---|
| 37 | lm=$3 |
---|
| 38 | ndm=1 |
---|
| 39 | elif [ $# -ge 2 ] |
---|
| 40 | then |
---|
| 41 | im=1 |
---|
| 42 | jm=$1 |
---|
| 43 | lm=$2 |
---|
| 44 | ndm=1 |
---|
| 45 | elif [ $# -ge 1 ] |
---|
| 46 | then |
---|
| 47 | im=1 |
---|
| 48 | jm=1 |
---|
| 49 | lm=$1 |
---|
| 50 | ndm=1 |
---|
| 51 | fi |
---|
[1] | 52 | |
---|
[492] | 53 | # since the file doesn't exist, we create it |
---|
[1] | 54 | cat << EOF > $fichdim |
---|
| 55 | !----------------------------------------------------------------------- |
---|
| 56 | ! INCLUDE 'dimensions.h' |
---|
| 57 | ! |
---|
| 58 | ! dimensions.h contient les dimensions du modele |
---|
| 59 | ! ndm est tel que iim=2**ndm |
---|
| 60 | !----------------------------------------------------------------------- |
---|
| 61 | |
---|
| 62 | INTEGER iim,jjm,llm,ndm |
---|
| 63 | |
---|
| 64 | PARAMETER (iim= $im,jjm=$jm,llm=$lm,ndm=$ndm) |
---|
| 65 | |
---|
| 66 | !----------------------------------------------------------------------- |
---|
| 67 | EOF |
---|
| 68 | |
---|
| 69 | fi |
---|
| 70 | |
---|
[492] | 71 | # remove 'old' dimensions.h file (if any) and replace it with new one |
---|
| 72 | if [ -f ../dimensions.h ] ; then |
---|
[1] | 73 | \rm ../dimensions.h |
---|
[492] | 74 | fi |
---|
[1] | 75 | tar cf - $fichdim | ( cd .. ; tar xf - ; mv $fichdim dimensions.h ) |
---|
[492] | 76 | # line above is a trick to preserve time of creation of dimensions.h files |
---|
Note: See
TracBrowser
for help on using the repository browser.