Last change
on this file since 2174 was
1907,
checked in by lguez, 11 years ago
|
Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:
$ svn propget copyright libf/phylmd/physiq.F90
Name of program: LMDZ
Creation date: 1984
Version: LMDZ5
License: CeCILL version 2
Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
See the license file in the root directory
Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.
|
-
Property copyright set to
Name of program: LMDZ Creation date: 1984 Version: LMDZ5 License: CeCILL version 2 Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539 See the license file in the root directory
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.5 KB
|
Rev | Line | |
---|
[1605] | 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" |
---|
| 11 | exit |
---|
| 12 | fi |
---|
| 13 | |
---|
| 14 | # build "fichnom", the relevant 'dimensions.im.jm.lm' file name |
---|
[1604] | 15 | for i in $* |
---|
| 16 | do |
---|
| 17 | list=$list.$i |
---|
[524] | 18 | done |
---|
[1146] | 19 | fichdim=dimensions${list} |
---|
[524] | 20 | |
---|
[1604] | 21 | if [ ! -f $fichdim ] |
---|
| 22 | then |
---|
[1605] | 23 | # echo "$fichdim does not exist" |
---|
[524] | 24 | |
---|
[1605] | 25 | # assign values of im, jm and lm |
---|
[1604] | 26 | if [ $# -ge 3 ] |
---|
[1605] | 27 | then |
---|
| 28 | im=$1 |
---|
| 29 | jm=$2 |
---|
| 30 | lm=$3 |
---|
| 31 | ndm=1 |
---|
| 32 | elif [ $# -ge 2 ] |
---|
| 33 | then |
---|
| 34 | im=1 |
---|
| 35 | jm=$1 |
---|
| 36 | lm=$2 |
---|
| 37 | ndm=1 |
---|
| 38 | elif [ $# -ge 1 ] |
---|
| 39 | then |
---|
| 40 | im=1 |
---|
| 41 | jm=1 |
---|
| 42 | lm=$1 |
---|
| 43 | ndm=1 |
---|
[1604] | 44 | fi |
---|
[524] | 45 | |
---|
[1605] | 46 | # since the file doesn't exist, we create it |
---|
[524] | 47 | cat << EOF > $fichdim |
---|
[764] | 48 | !----------------------------------------------------------------------- |
---|
[794] | 49 | ! INCLUDE 'dimensions.h' |
---|
[764] | 50 | ! |
---|
[794] | 51 | ! dimensions.h contient les dimensions du modele |
---|
[764] | 52 | ! ndm est tel que iim=2**ndm |
---|
| 53 | !----------------------------------------------------------------------- |
---|
| 54 | |
---|
| 55 | INTEGER iim,jjm,llm,ndm |
---|
| 56 | |
---|
| 57 | PARAMETER (iim= $im,jjm=$jm,llm=$lm,ndm=$ndm) |
---|
| 58 | |
---|
| 59 | !----------------------------------------------------------------------- |
---|
| 60 | EOF |
---|
[794] | 61 | |
---|
[1605] | 62 | fi |
---|
| 63 | |
---|
| 64 | # remove 'old' dimensions.h file (if any) and replace it with new one |
---|
| 65 | if [ -f ../dimensions.h ] ; then |
---|
[524] | 66 | \rm ../dimensions.h |
---|
[1605] | 67 | fi |
---|
[524] | 68 | tar cf - $fichdim | ( cd .. ; tar xf - ; mv $fichdim dimensions.h ) |
---|
[1605] | 69 | # line above is a trick to preserve time of creation of dimensions.h files |
---|
Note: See
TracBrowser
for help on using the repository browser.