Changeset 845 for LMDZ4/branches/LMDZ4_V3_patches/makegcm_fcm
- Timestamp:
- Sep 14, 2007, 4:01:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4_V3_patches/makegcm_fcm
r783 r845 24 24 set veget=false 25 25 set chimie=false 26 set psmile=false27 26 set parallel=false 28 27 set io=ioipsl 29 28 30 set LMDGCM= $PWD29 set LMDGCM=`/bin/pwd` 31 30 set LIBOGCM=$LMDGCM/libo 32 31 set LIBFGCM=$LMDGCM/libf … … 60 59 [-p PHYS] : compilation avec la physique libf/phyPHYS, (def: lmd) 61 60 [-debug] : compile avec options debug. 62 [-c false/ true] : couplé océan : mpi1/mpi2/false (def: false)61 [-c false/MPI1/MPI2] : couplé océan : MPI1/MPI2/false (def: false) 63 62 [-v false/true] : avec ou sans végétation (def: false) 64 63 [-chimie SCHEMA/false] : nom du schéma chimique ou false (def) … … 155 154 156 155 157 if ( "$chimie" == 'true' ) then 156 if ( "$chimie" == 'AER' ) then 157 set CPP_KEY="$CPP_KEY INCA INCA_AER" 158 set INCLUDE="$INCLUDE -I${INCA_INCDIR}" 159 set LIB="$LIB -L${INCA_LIBDIR} -lchimie" 160 else if ( "$chimie" == 'CH4' ) then 161 set CPP_KEY="$CPP_KEY INCA INCA_CH4" 162 set INCLUDE="$INCLUDE -I${INCA_INCDIR}" 163 set LIB="$LIB -L${INCA_LIBDIR} -lchimie" 164 else if ( "$chimie" == 'CH4_AER' ) then 165 set CPP_KEY="$CPP_KEY INCA INCA_AER INCA_CH4" 166 set INCLUDE="$INCLUDE -I${INCA_INCDIR}" 167 set LIB="$LIB -L${INCA_LIBDIR} -lchimie" 168 else if ( "$chimie" == 'NMHC' ) then 169 set CPP_KEY="$CPP_KEY INCA INCA_NMHC" 170 set INCLUDE="$INCLUDE -I${INCA_INCDIR}" 171 set LIB="$LIB -L${INCA_LIBDIR} -lchimie" 172 else if ( "$chimie" == 'NMHC_AER' ) then 173 set CPP_KEY="$CPP_KEY INCA INCA_AER INCA_NMHC" 174 set INCLUDE="$INCLUDE -I${INCA_INCDIR}" 175 set LIB="$LIB -L${INCA_LIBDIR} -lchimie" 176 else if ( "$chimie" == 'GES' ) then 158 177 set CPP_KEY="$CPP_KEY INCA" 159 178 set INCLUDE="$INCLUDE -I${INCA_INCDIR}" … … 163 182 if ( "$couple" != 'false' ) then 164 183 set CPP_KEY="$CPP_KEY CPP_COUPLE" 165 set CPP_KEY="$CPP_KEY CPP_PSMILE" 166 set INCLUDE="$INCLUDE -I${OASIS_INCDIR}.$couple" 167 set LIB="$LIB -L${OASIS_LIBDIR} -loasis.$couple" 184 set INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 185 set LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io" 168 186 endif 169 187 … … 175 193 set CPP_KEY="$CPP_KEY CPP_VEGET" 176 194 set INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 177 set LIB="${LIB} -L${ORCH_LIBDIR} -lsechiba -lparameters -lstomate -lparallel "195 set LIB="${LIB} -L${ORCH_LIBDIR} -lsechiba -lparameters -lstomate -lparallel -lorglob" 178 196 endif 179 197 … … 290 308 291 309 set SUFF_NAME=_${dim_full} 292 set SUFF_NAME=${SUFF_NAME}_t${ntrac} 310 set SUFF_NAME=${SUFF_NAME}_t${ntrac}_phy${physique} 293 311 294 312 if ( "$parallel" == 'true' ) then … … 311 329 set SUFF_NAME=${SUFF_NAME}_inca 312 330 endif 313 314 #########################################################315 # On adapte certains include à F90 (mener a disparaitre)316 #########################################################317 #sed -e 's/^c/\!/' $libf/grid/dimensions.h >! $libf/grid/dimensions90.tmp318 #if ( ! -f $libf/grid/dimensions90.h || `diff $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h | wc -w` ) then319 # \mv $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h320 #endif321 #awk 'BEGIN {} { sub ("^c","\!") ; if ($0 ~ /^ s/) {if (NR > 1) print p0," &"; sub (" s"," \\&")} else { if (NR > 1) print p0 } p0=$0 } END { print p0}' $libf/dyn3d/paramet.h >! $libf/dyn3d/paramet90.tmp322 #if ( ! -f $libf/dyn3d/paramet90.h || `diff $libf/dyn3d/paramet90.tmp $libf/dyn3d/paramet90.h | wc -w` ) then323 # \mv $libf/dyn3d/paramet90.tmp $libf/dyn3d/paramet90.h324 #endif325 #awk 'BEGIN {} { sub ("^c","\!") ; if ($0 ~ /^ \./) {if (NR > 1) print p0," &"; sub (" \."," \\&")} else { if (NR > 1) print p0 } p0=$0 } END { print p0}' $libf/dyn3d/control.h >! $libf/dyn3d/control.tmp326 #if ( ! -f $libf/dyn3d/control.inc || `diff $libf/dyn3d/control.tmp $libf/dyn3d/control.inc | wc -w` ) then327 # \mv $libf/dyn3d/control.tmp $libf/dyn3d/control.inc328 #endif329 #awk 'BEGIN {} { sub ("^c","\!") ; if ($0 ~ /^ S/) {if (NR > 1) print p0," &"; sub (" S"," \\&")} else { if (NR > 1) print p0 } p0=$0 } END { print p0}' $libf/phylmd/YOMCST.h >! $libf/phylmd/YOMCST.tmp330 #if ( ! -f $libf/phylmd/YOMCST.inc || `diff $libf/phylmd/YOMCST.tmp $libf/phylmd/YOMCST.inc | wc -w` ) then331 # \mv $libf/phylmd/YOMCST.tmp $libf/phylmd/YOMCST.inc332 #endif333 #awk 'BEGIN {} { sub ("^c","\!") ; if ($0 ~ /^ S/) {if (NR > 1) print p0," &"; sub (" S"," \\&")} else { if (NR > 1) print p0 } p0=$0 } END { print p0}' $libf/phylmd/clesphys.h >! $libf/phylmd/clesphys.tmp334 #if ( ! -f $libf/phylmd/clesphys.inc || `diff $libf/phylmd/clesphys.tmp $libf/phylmd/clesphys.inc | wc -w` ) then335 # \mv $libf/phylmd/clesphys.tmp $libf/phylmd/clesphys.inc336 #endif337 338 #########################################################339 331 340 332 cd $LMDGCM
Note: See TracChangeset
for help on using the changeset viewer.