Changeset 1197
- Timestamp:
- Jun 29, 2009, 5:30:35 PM (15 years ago)
- Location:
- LMDZ4/branches/LMDZ4-dev
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/arch/arch-AMD64_CICLAD.path
r1166 r1197 1 setNETCDF_LIBDIR=/opt/netcdf/pgf/lib2 setNETCDF_INCDIR=/opt/netcdf/pgf/include3 setIOIPSL_INCDIR=$LMDGCM/../../lib4 setIOIPSL_LIBDIR=$LMDGCM/../../lib5 setORCH_INCDIR=$LMDGCM/../../lib6 setORCH_LIBDIR=$LMDGCM/../../lib7 setOASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple8 setOASIS_LIBDIR=$LMDGCM/../../prism/SX/lib9 setINCA_LIBDIR=$LMDGCM/../INCA3/config/lib10 setINCA_INCDIR=$LMDGCM/../INCA3/config/lib1 NETCDF_LIBDIR=/opt/netcdf/pgf/lib 2 NETCDF_INCDIR=/opt/netcdf/pgf/include 3 IOIPSL_INCDIR=$LMDGCM/../../lib 4 IOIPSL_LIBDIR=$LMDGCM/../../lib 5 ORCH_INCDIR=$LMDGCM/../../lib 6 ORCH_LIBDIR=$LMDGCM/../../lib 7 OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple 8 OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib 9 INCA_LIBDIR=$LMDGCM/../INCA3/config/lib 10 INCA_INCDIR=$LMDGCM/../INCA3/config/lib -
LMDZ4/branches/LMDZ4-dev/arch/arch-ES_MOON.path
r871 r1197 1 setNETCDF_LIBDIR=/S/home010/c0010/ES/lib2 setNETCDF_INCDIR=/S/home010/c0010/ES/include3 setIOIPSL_INCDIR=$LMDGCM/../../lib4 setIOIPSL_LIBDIR=$LMDGCM/../../lib5 setORCH_INCDIR=$LMDGCM/../../lib6 setORCH_LIBDIR=$LMDGCM/../../lib7 setOASIS_INCDIR=$LMDGCM/../../prism/ES/build/lib/psmile.$couple8 setOASIS_LIBDIR=$LMDGCM/../../prism/ES/lib9 setINCA_LIBDIR=$LMDGCM/../INCA3/config/lib10 setINCA_INCDIR=$LMDGCM/../INCA3/config/lib11 setLIBPREFIX=sx1 NETCDF_LIBDIR=/S/home010/c0010/ES/lib 2 NETCDF_INCDIR=/S/home010/c0010/ES/include 3 IOIPSL_INCDIR=$LMDGCM/../../lib 4 IOIPSL_LIBDIR=$LMDGCM/../../lib 5 ORCH_INCDIR=$LMDGCM/../../lib 6 ORCH_LIBDIR=$LMDGCM/../../lib 7 OASIS_INCDIR=$LMDGCM/../../prism/ES/build/lib/psmile.$couple 8 OASIS_LIBDIR=$LMDGCM/../../prism/ES/lib 9 INCA_LIBDIR=$LMDGCM/../INCA3/config/lib 10 INCA_INCDIR=$LMDGCM/../INCA3/config/lib 11 LIBPREFIX=sx -
LMDZ4/branches/LMDZ4-dev/arch/arch-IA64_PLATINE.path
r910 r1197 1 setNETCDF_LIBDIR='/usr/lib -lnetcdff'2 setNETCDF_INCDIR=/usr/include3 setIOIPSL_INCDIR=$LMDGCM/../../lib4 setIOIPSL_LIBDIR=$LMDGCM/../../lib5 setORCH_INCDIR=$LMDGCM/../../lib6 setORCH_LIBDIR=$LMDGCM/../../lib7 setOASIS_INCDIR=$LMDGCM/../../prism/IA64/build/lib/psmile.$couple8 setOASIS_LIBDIR=$LMDGCM/../../prism/IA64/lib9 setINCA_LIBDIR=$LMDGCM/../INCA3/config/lib10 setINCA_INCDIR=$LMDGCM/../INCA3/config/lib1 NETCDF_LIBDIR='/usr/lib -lnetcdff' 2 NETCDF_INCDIR=/usr/include 3 IOIPSL_INCDIR=$LMDGCM/../../lib 4 IOIPSL_LIBDIR=$LMDGCM/../../lib 5 ORCH_INCDIR=$LMDGCM/../../lib 6 ORCH_LIBDIR=$LMDGCM/../../lib 7 OASIS_INCDIR=$LMDGCM/../../prism/IA64/build/lib/psmile.$couple 8 OASIS_LIBDIR=$LMDGCM/../../prism/IA64/lib 9 INCA_LIBDIR=$LMDGCM/../INCA3/config/lib 10 INCA_INCDIR=$LMDGCM/../INCA3/config/lib 11 11 -
LMDZ4/branches/LMDZ4-dev/arch/arch-PW6_VARGAS.path
r1176 r1197 1 setNETCDF_LIBDIR=/usr/local/pub/NetCDF/3.6.3/lib2 setNETCDF_INCDIR=/usr/local/pub/NetCDF/3.6.3/include3 setIOIPSL_INCDIR=$LMDGCM/../../lib4 setIOIPSL_LIBDIR=$LMDGCM/../../lib5 setORCH_INCDIR=$LMDGCM/../../lib6 setORCH_LIBDIR=$LMDGCM/../../lib7 setOASIS_INCDIR=$LMDGCM/../../prism/AIX6/build/lib/psmile.$couple8 setOASIS_LIBDIR=$LMDGCM/../../prism/AIX6/lib9 setINCA_LIBDIR=$LMDGCM/../INCA3/config/lib10 setINCA_INCDIR=$LMDGCM/../INCA3/config/lib1 NETCDF_LIBDIR=/usr/local/pub/NetCDF/3.6.3/lib 2 NETCDF_INCDIR=/usr/local/pub/NetCDF/3.6.3/include 3 IOIPSL_INCDIR=$LMDGCM/../../lib 4 IOIPSL_LIBDIR=$LMDGCM/../../lib 5 ORCH_INCDIR=$LMDGCM/../../lib 6 ORCH_LIBDIR=$LMDGCM/../../lib 7 OASIS_INCDIR=$LMDGCM/../../prism/AIX6/build/lib/psmile.$couple 8 OASIS_LIBDIR=$LMDGCM/../../prism/AIX6/lib 9 INCA_LIBDIR=$LMDGCM/../INCA3/config/lib 10 INCA_INCDIR=$LMDGCM/../INCA3/config/lib -
LMDZ4/branches/LMDZ4-dev/arch/arch-SX8_BRODIE.fcm
r1002 r1197 8 8 %PROD_FFLAGS -C vopt 9 9 %DEV_FFLAGS -C vsafe -gv -Wf,-init stack=nan,-init heap=nan 10 %DEBUG_FFLAGS -C debug -e C-Wf,-init stack=nan,-init heap=nan10 %DEBUG_FFLAGS -C debug -eR -Wf,-init stack=nan,-init heap=nan 11 11 %MPI_FFLAGS 12 12 %OMP_FFLAGS -P openmp -
LMDZ4/branches/LMDZ4-dev/arch/arch-SX8_BRODIE.path
r1154 r1197 1 setNETCDF_LIBDIR=/SXlocal/pub/netCDF/3.6.1-openmp/lib2 setNETCDF_INCDIR=/SXlocal/pub/netCDF/3.6.1-openmp/include3 setIOIPSL_INCDIR=$LMDGCM/../../lib4 setIOIPSL_LIBDIR=$LMDGCM/../../lib5 setORCH_INCDIR=$LMDGCM/../../lib6 setORCH_LIBDIR=$LMDGCM/../../lib7 setOASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple8 setOASIS_LIBDIR=$LMDGCM/../../prism/SX/lib9 setINCA_LIBDIR=$LMDGCM/../INCA3/config/lib10 setINCA_INCDIR=$LMDGCM/../INCA3/config/lib1 NETCDF_LIBDIR=/SXlocal/pub/netCDF/3.6.1-openmp/lib 2 NETCDF_INCDIR=/SXlocal/pub/netCDF/3.6.1-openmp/include 3 IOIPSL_INCDIR=$LMDGCM/../../lib 4 IOIPSL_LIBDIR=$LMDGCM/../../lib 5 ORCH_INCDIR=$LMDGCM/../../lib 6 ORCH_LIBDIR=$LMDGCM/../../lib 7 OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple 8 OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib 9 INCA_LIBDIR=$LMDGCM/../INCA3/config/lib 10 INCA_INCDIR=$LMDGCM/../INCA3/config/lib -
LMDZ4/branches/LMDZ4-dev/arch/arch-SX8_MERCURE.path
r821 r1197 1 setNETCDF_LIBDIR=/usr/local/SX8/soft/netcdf/lib2 setNETCDF_INCDIR=/usr/local/SX8/soft/netcdf/include3 setIOIPSL_INCDIR=$LMDGCM/../../lib4 setIOIPSL_LIBDIR=$LMDGCM/../../lib5 setORCH_INCDIR=$LMDGCM/../../lib6 setORCH_LIBDIR=$LMDGCM/../../lib7 setOASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple8 setOASIS_LIBDIR=$LMDGCM/../../prism/SX/lib9 setINCA_LIBDIR=$LMDGCM/../INCA3/config/lib10 setINCA_INCDIR=$LMDGCM/../INCA3/config/lib1 NETCDF_LIBDIR=/usr/local/SX8/soft/netcdf/lib 2 NETCDF_INCDIR=/usr/local/SX8/soft/netcdf/include 3 IOIPSL_INCDIR=$LMDGCM/../../lib 4 IOIPSL_LIBDIR=$LMDGCM/../../lib 5 ORCH_INCDIR=$LMDGCM/../../lib 6 ORCH_LIBDIR=$LMDGCM/../../lib 7 OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple 8 OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib 9 INCA_LIBDIR=$LMDGCM/../INCA3/config/lib 10 INCA_INCDIR=$LMDGCM/../INCA3/config/lib -
LMDZ4/branches/LMDZ4-dev/arch/arch-linux-32bit.path
r783 r1197 1 set NETCDF_LIBDIR=/distrib/local/netcdf/pgi_32bits/lib/ 2 set NETCDF_INCDIR=/distrib/local/netcdf/pgi_32bits/include3 set IOIPSL_INCDIR=/u/fairhead/modipsl_ioipsl_3/lib4 set IOIPSL_LIBDIR=/u/fairhead/modipsl_ioipsl_3/lib5 setORCH_INCDIR=/u/fairhead/modipsl_ioipsl_3/lib6 setORCH_LIBDIR=/u/fairhead/modipsl_ioipsl_3/lib1 NETCDF_LIBDIR=/usr/local/netcdf-pgi/lib 2 NETCDF_INCDIR=/usr/local/netcdf-pgi/include 3 IOIPSL_INCDIR=/usr/local/guez/modipsl/lib 4 IOIPSL_LIBDIR=/usr/local/guez/modipsl/lib 5 ORCH_INCDIR=/u/fairhead/modipsl_ioipsl_3/lib 6 ORCH_LIBDIR=/u/fairhead/modipsl_ioipsl_3/lib -
LMDZ4/branches/LMDZ4-dev/makelmdz_fcm
r1154 r1197 1 #!/bin/csh2 #3 1 # $Header$ 4 # 2 # This is a script in Bash. 3 5 4 # FH : on ne crée plus le fichier arch.mk qui est supposé exister par 6 5 # FH : ailleurs. … … 11 10 # FH : arch.mk en lançant une première fois makegcm. 12 11 # 13 set verbose echo 12 ##set -x 14 13 ######################################################################## 15 14 # options par defaut pour la commande make 16 15 ######################################################################## 17 16 18 setdim="96x72x19"19 setphysique=lmd20 setfiltre=filtrez21 setgrille=reg22 setcouple=false23 setveget=false24 setchimie=false25 setparallel=none26 setcompil_mod=prod27 setio=ioipsl28 setLIBPREFIX=""29 setfcm_path=none30 31 setLMDGCM=`/bin/pwd`32 setLIBOGCM=$LMDGCM/libo33 setLIBFGCM=$LMDGCM/libf17 dim="96x72x19" 18 physique=lmd 19 filtre=filtrez 20 grille=reg 21 couple=false 22 veget=false 23 chimie=false 24 parallel=none 25 compil_mod=prod 26 io=ioipsl 27 LIBPREFIX="" 28 fcm_path=none 29 30 LMDGCM=`/bin/pwd` 31 LIBOGCM=$LMDGCM/libo 32 LIBFGCM=$LMDGCM/libf 34 33 35 34 ######################################################################## … … 37 36 ######################################################################## 38 37 39 setCPP_KEY=""40 setINCLUDE=""41 setLIB=""42 setadjnt=""43 setCOMPIL_FFLAGS="%PROD_FFLAGS"44 setPARA_FFLAGS=""45 setPARA_LD=""38 CPP_KEY="" 39 INCLUDE="" 40 LIB="" 41 adjnt="" 42 COMPIL_FFLAGS="%PROD_FFLAGS" 43 PARA_FFLAGS="" 44 PARA_LD="" 46 45 47 46 ######################################################################## … … 49 48 ######################################################################## 50 49 51 top: 52 if ($#argv > 0) then 53 switch ($1:q) 54 55 case -h: 56 cat <<fin 50 while (($# > 0)) 51 do 52 case $1 in 53 "-h") cat <<fin 57 54 manuel complet sur http://... 58 55 Usage : … … 77 74 exec : exécutable généré 78 75 fin 79 exit 80 81 case -d: 82 set dim=$2 ; shift ; shift ; goto top 83 84 case -O: 85 echo "option obsolete dans cette version intermediaire de makegcm" 86 exit 87 88 case -p 89 set physique="$2" ; shift ; shift ; goto top 90 91 case -g 92 set grille="$2" ; shift ; shift ; goto top 93 94 case -c 95 set couple="$2" ; shift ; shift ; goto top 96 97 case -prod 98 set compil_mod="prod" ; shift ; goto top 99 100 case -dev 101 set compil_mod="dev" ; shift ; goto top 102 103 case -debug 104 set compil_mod="debug" ; shift ; goto top 105 106 case -io 107 set io="$2" ; shift ; shift ; goto top 108 109 case -v 110 set veget="$2" ; shift ; shift ; goto top 111 112 case -chimie 113 set chimie="$2" ; shift ; shift ; goto top 114 115 case -parallel 116 set parallel="$2" ; shift ; shift ; goto top 117 118 case -include 119 set INCLUDE="$INCLUDE -I$2" ; shift ; shift ; goto top 120 121 case -cpp 122 set CPP_KEY="$CPP_KEY $2" ; shift ; shift ; goto top 123 124 case -adjnt 125 echo 'otpion a reactiver ';exit 126 set opt_dep="$opt_dep adjnt" ; set adjnt="-ladjnt -ldyn3d " 127 set optim="$optim -Dadj" ; shift ; goto top 128 129 130 case -filtre 131 set filtre=$2 ; shift ; shift ; goto top 132 133 case -link 134 set LIB="$LIB $2" ; shift ; shift ; goto top 135 136 case -fcm_path 137 set fcm_path=$2 ; shift ; shift ; goto top 138 139 case -arch 140 set arch=$2 ; shift ; shift ; goto top 141 142 default 143 set code="$1" ; shift ; goto top 144 145 endsw 146 endif 76 exit;; 77 78 "-d") 79 dim=$2 ; shift ; shift ;; 80 81 "-O") 82 echo "option obsolete dans cette version intermediaire de makegcm" 83 exit;; 84 85 "-p") 86 physique="$2" ; shift ; shift ;; 87 88 "-g") 89 grille="$2" ; shift ; shift ;; 90 91 "-c") 92 couple="$2" ; shift ; shift ;; 93 94 "-prod") 95 compil_mod="prod" ; shift ;; 96 97 "-dev") 98 compil_mod="dev" ; shift ;; 99 100 "-debug") 101 compil_mod="debug" ; shift ;; 102 103 "-io") 104 io="$2" ; shift ; shift ;; 105 106 "-v") 107 veget="$2" ; shift ; shift ;; 108 109 "-chimie") 110 chimie="$2" ; shift ; shift ;; 111 112 "-parallel") 113 parallel="$2" ; shift ; shift ;; 114 115 "-include") 116 INCLUDE="$INCLUDE -I$2" ; shift ; shift ;; 117 118 "-cpp") 119 CPP_KEY="$CPP_KEY $2" ; shift ; shift ;; 120 121 "-adjnt") 122 echo "otpion a reactiver ";exit 123 opt_dep="$opt_dep adjnt" ; adjnt="-ladjnt -ldyn3d " 124 optim="$optim -Dadj" ; shift ;; 125 126 127 "-filtre") 128 filtre=$2 ; shift ; shift ;; 129 130 "-link") 131 LIB="$LIB $2" ; shift ; shift ;; 132 133 "-fcm_path") 134 fcm_path=$2 ; shift ; shift ;; 135 136 "-arch") 137 arch=$2 ; shift ; shift ;; 138 139 *) 140 code="$1" ; shift ;; 141 esac 142 done 147 143 148 144 ############################################################### 149 145 # mettre le chemin du fcm dans le path 150 146 ############################################################### 151 if ( "$fcm_path" != 'none' ) then 152 setenv PATH ${fcm_path}:${PATH} 153 endif 147 if [[ "$fcm_path" != "none" ]] 148 then 149 export PATH=${fcm_path}:${PATH} 150 fi 154 151 155 152 echo "Chemin du fcm utlise :" … … 169 166 ######################################################################## 170 167 171 if ( "$compil_mod" == 'prod' ) then 172 set COMPIL_FFLAGS="%PROD_FFLAGS" 173 else if ( "$compil_mod" == 'dev' ) then 174 set COMPIL_FFLAGS="%DEV_FFLAGS" 175 else if ( "$compil_mod" == 'debug' ) then 176 set COMPIL_FFLAGS="%DEBUG_FFLAGS" 177 endif 178 179 if ( "$physique" == 'nophys' ) then 180 181 else 168 if [[ "$compil_mod" == "prod" ]] 169 then 170 COMPIL_FFLAGS="%PROD_FFLAGS" 171 elif [[ "$compil_mod" == "dev" ]] 172 then 173 COMPIL_FFLAGS="%DEV_FFLAGS" 174 elif [[ "$compil_mod" == "debug" ]] 175 then 176 COMPIL_FFLAGS="%DEBUG_FFLAGS" 177 fi 178 179 if [[ "$physique" != "nophys" ]] 180 then 182 181 #Default planet type is Earth 183 set CPP_KEY="$CPP_KEY CPP_EARTH" 184 endif 185 186 if ( "$chimie" == 'INCA' ) then 187 set CPP_KEY="$CPP_KEY INCA" 188 set INCLUDE="$INCLUDE -I${INCA_INCDIR}" 189 set LIB="$LIB -L${INCA_LIBDIR} -lchimie" 190 endif 191 192 if ( "$couple" != 'false' ) then 193 set CPP_KEY="$CPP_KEY CPP_COUPLE" 194 set INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 195 set LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io" 196 endif 197 198 if ( "$parallel" == 'mpi' ) then 199 set CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI" 200 set PARA_FFLAGS="%MPI_FFLAGS" 201 set PARA_LD="%MPI_LD" 202 else if ("$parallel" == 'omp' ) then 203 set CPP_KEY="$CPP_KEY CPP_PARA CPP_OMP" 204 set PARA_FFLAGS="%OMP_FFLAGS" 205 set PARA_LD="%OMP_LD" 206 else if ("$parallel" == 'mpi_omp' ) then 207 set CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI CPP_OMP" 208 set PARA_FFLAGS="%MPI_FFLAGS %OMP_FFLAGS" 209 set PARA_LD="%MPI_LD %OMP_LD" 210 endif 211 212 if ( ( "$parallel" == 'omp' || "$parallel" == 'mpi_omp' ) \ 213 && ( "$compil_mod" == 'debug' ) ) then 214 echo 'Usually, parallelization with OpenMP requires some optimization.' 215 echo 'We suggest switching to "-dev".' 182 CPP_KEY="$CPP_KEY CPP_EARTH" 183 fi 184 185 if [[ "$chimie" == "INCA" ]] 186 then 187 CPP_KEY="$CPP_KEY INCA" 188 INCLUDE="$INCLUDE -I${INCA_INCDIR}" 189 LIB="$LIB -L${INCA_LIBDIR} -lchimie" 190 fi 191 192 if [[ "$couple" != "false" ]] 193 then 194 CPP_KEY="$CPP_KEY CPP_COUPLE" 195 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 196 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io" 197 fi 198 199 if [[ "$parallel" == "mpi" ]] 200 then 201 CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI" 202 PARA_FFLAGS="%MPI_FFLAGS" 203 PARA_LD="%MPI_LD" 204 elif [[ "$parallel" == "omp" ]] 205 then 206 CPP_KEY="$CPP_KEY CPP_PARA CPP_OMP" 207 PARA_FFLAGS="%OMP_FFLAGS" 208 PARA_LD="%OMP_LD" 209 elif [[ "$parallel" == "mpi_omp" ]] 210 then 211 CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI CPP_OMP" 212 PARA_FFLAGS="%MPI_FFLAGS %OMP_FFLAGS" 213 PARA_LD="%MPI_LD %OMP_LD" 214 fi 215 216 if [[ ( "$parallel" == "omp" || "$parallel" == "mpi_omp" ) \ 217 && "$compil_mod" == "debug" ]] 218 then 219 echo "Usually, parallelization with OpenMP requires some optimization." 220 echo "We suggest switching to \"-dev\"." 216 221 exit 1 217 ##set COMPIL_FFLAGS="%DEV_FFLAGS" 218 endif 219 220 if ( "$veget" == 'true' ) then 221 set CPP_KEY="$CPP_KEY CPP_VEGET" 222 set INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 223 set LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 224 endif 225 226 if ( $io == ioipsl ) then 227 set CPP_KEY="$CPP_KEY CPP_IOIPSL" 228 set INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}" 229 set LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl" 230 endif 231 232 set INCLUDE="$INCLUDE -I${NETCDF_INCDIR}" 233 set LIB="$LIB -L${NETCDF_LIBDIR} -lnetcdf" 222 ##COMPIL_FFLAGS="%DEV_FFLAGS" 223 fi 224 225 if [[ "$veget" == "true" ]] 226 then 227 CPP_KEY="$CPP_KEY CPP_VEGET" 228 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 229 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 230 fi 231 232 if [[ $io == ioipsl ]] 233 then 234 CPP_KEY="$CPP_KEY CPP_IOIPSL" 235 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}" 236 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl" 237 fi 238 239 INCLUDE="$INCLUDE -I${NETCDF_INCDIR}" 240 LIB="$LIB -L${NETCDF_LIBDIR} -lnetcdf" 234 241 235 242 ######################################################################## … … 238 245 239 246 240 setdim_full=$dim241 setdim=`echo $dim | sed -e 's/[^0-9]/ /g'`242 setdimc=`echo $dim | wc -w`247 dim_full=$dim 248 dim=`echo $dim | sed -e 's/[^0-9]/ /g'` 249 dimc=`echo $dim | wc -w` 243 250 244 251 echo calcul de la dimension … … 262 269 ######################################################################## 263 270 264 setdimension=`echo $dim | wc -w`271 dimension=`echo $dim | wc -w` 265 272 echo dimension $dimension 266 273 267 if ( $dimension != 3 ) then 268 echo "Probleme dans les dimensions de la dynamique !!" 269 echo "Non reactive pour l'instant !!!" 270 endif 271 272 if ( $dimension == 3 ) then 274 if (( $dimension == 3 )) 275 then 273 276 cd $LIBFGCM/grid 274 277 \rm fxyprim.h 275 278 cp -p fxy_${grille}.h fxyprim.h 276 endif 279 else 280 echo "Probleme dans les dimensions de la dynamique !!" 281 echo "Non reactive pour l'instant !!!" 282 fi 277 283 278 284 ###################################################################### … … 281 287 ###################################################################### 282 288 283 #if ( -f $libf/phy$physique/raddim.h ) then 284 # if ( -f $libf/phy$physique/raddim.$dimh.h ) then 289 #if [[ -f $libf/phy$physique/raddim.h ]] 290 #then 291 # if [[ -f $libf/phy$physique/raddim.$dimh.h ]] 292 #then 285 293 # \rm -f $libf/phy$physique/raddim.h 286 294 # cp -p $libf/phy$physique/raddim.$dimh.h $libf/phy$physique/raddim.h … … 291 299 # echo le fichier $libf/phy$physique/raddim.$dimh.h 292 300 # \cp -p $libf/phy$physique/raddim.defaut.h $libf/phy$physique/raddim.h 293 # endif294 # endif301 # fi 302 #fi 295 303 296 304 ###################################################################### … … 298 306 ###################################################################### 299 307 300 if ( `expr $dimc \> 2` == 1 ) then 301 set filtre="FILTRE=$filtre" 308 if (( `expr $dimc \> 2` == 1 )) 309 then 310 filtre="FILTRE=$filtre" 302 311 else 303 setfiltre="FILTRE= L_FILTRE= "304 endif 312 filtre="FILTRE= L_FILTRE= " 313 fi 305 314 echo MACRO FILTRE $filtre 306 315 … … 314 323 315 324 316 set SUFF_NAME=_${dim_full} 317 set SUFF_NAME=${SUFF_NAME}_phy${physique} 318 319 if ( "$parallel" != 'none' ) then 320 set SUFF_NAME=${SUFF_NAME}_para 321 set DYN=dyn${dimc}dpar 325 SUFF_NAME=_${dim_full} 326 SUFF_NAME=${SUFF_NAME}_phy${physique} 327 328 if [[ "$parallel" != "none" ]] 329 then 330 SUFF_NAME=${SUFF_NAME}_para 331 DYN=dyn${dimc}dpar 322 332 else 323 set SUFF_NAME=${SUFF_NAME}_seq 324 set DYN=dyn${dimc}d 325 endif 326 327 if ( $veget == "true" ) then 328 set SUFF_NAME=${SUFF_NAME}_orch 329 endif 330 331 if ( $couple != "false" ) then 332 set SUFF_NAME=${SUFF_NAME}_couple 333 endif 334 335 if ( $chimie == 'INCA' ) then 336 set SUFF_NAME=${SUFF_NAME}_inca 337 endif 333 SUFF_NAME=${SUFF_NAME}_seq 334 DYN=dyn${dimc}d 335 fi 336 337 if [[ $veget == "true" ]] 338 then 339 SUFF_NAME=${SUFF_NAME}_orch 340 fi 341 342 if [[ $couple != "false" ]] 343 then 344 SUFF_NAME=${SUFF_NAME}_couple 345 fi 346 347 if [[ $chimie == "INCA" ]] 348 then 349 SUFF_NAME=${SUFF_NAME}_inca 350 fi 338 351 339 352 cd $LMDGCM 340 setconfig_fcm="config.fcm"353 config_fcm="config.fcm" 341 354 rm -f $config_fcm 342 355 touch $config_fcm
Note: See TracChangeset
for help on using the changeset viewer.