|
Last change
on this file since 3175 was
3175,
checked in by emillour, 23 months ago
|
|
Pluto PCM:
Add the old Pluto LMDZ for reference (required prior step to making
an LMDZ.PLUTO using the same framework as the other physics packages).
TB+EM
|
-
Property svn:executable set to
*
|
|
File size:
642 bytes
|
| Line | |
|---|
| 1 | for i in $* ; do |
|---|
| 2 | list=$list.$i |
|---|
| 3 | done |
|---|
| 4 | fichdim=dimphy$list |
|---|
| 5 | |
|---|
| 6 | if [ ! -f $fichdim ] ; then |
|---|
| 7 | # si le fichier de dimensions n'existe pas, on le cree |
|---|
| 8 | |
|---|
| 9 | if [ $# -ge 3 ] ; then |
|---|
| 10 | im=$1 |
|---|
| 11 | jm=$2 |
|---|
| 12 | lm=$3 |
|---|
| 13 | else |
|---|
| 14 | echo il faut preciser les dimensions |
|---|
| 15 | exit |
|---|
| 16 | fi |
|---|
| 17 | |
|---|
| 18 | cat << EOF > $fichdim |
|---|
| 19 | c----------------------------------------------------------------------- |
|---|
| 20 | INTEGER KIDIA, KFDIA, KLON, KLEV |
|---|
| 21 | PARAMETER (KIDIA=1,KFDIA=$im*($jm-1)+2, |
|---|
| 22 | . KLON=KFDIA-KIDIA+1,KLEV=$lm) |
|---|
| 23 | c----------------------------------------------------------------------- |
|---|
| 24 | EOF |
|---|
| 25 | fi |
|---|
| 26 | |
|---|
| 27 | /bin/rm ../dimphy.h |
|---|
| 28 | tar cf - $fichdim | ( cd .. ; tar xf - ; mv $fichdim dimphy.h ) |
|---|
Note: See
TracBrowser
for help on using the repository browser.