source: trunk/LMDZ.GENERIC/libf/grid/dimension/makdimphy @ 1974

Last change on this file since 1974 was 135, checked in by aslmd, 14 years ago

CHANGEMENT ARBORESCENCE ETAPE 2 -- NON COMPLET

  • Property svn:executable set to *
File size: 642 bytes
Line 
1for i in $* ; do
2   list=$list.$i
3done
4fichdim=dimphy$list
5
6if [ ! -f $fichdim ] ; then
7# si le fichier de dimensions n'existe pas, on le cree
8
9if [ $# -ge 3 ] ; then
10   im=$1
11   jm=$2
12   lm=$3
13else
14   echo il faut preciser les dimensions
15   exit
16fi
17
18cat << EOF > $fichdim
19c-----------------------------------------------------------------------
20      INTEGER KIDIA, KFDIA, KLON, KLEV
21      PARAMETER (KIDIA=1,KFDIA=$im*($jm-1)+2,
22     .           KLON=KFDIA-KIDIA+1,KLEV=$lm)
23c-----------------------------------------------------------------------
24EOF
25fi
26
27/bin/rm ../dimphy.h
28tar cf - $fichdim | ( cd .. ; tar xf - ; mv $fichdim dimphy.h )
Note: See TracBrowser for help on using the repository browser.