Changeset 1302 for trunk/LMDZ.COMMON/makelmdz_fcm
- Timestamp:
- Jun 26, 2014, 6:07:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz_fcm
r1300 r1302 23 23 veget=false 24 24 sisvat=false 25 rrtm=false 25 26 chimie=false 26 27 chemistry=false … … 40 41 LIBFGCM=$LMDGCM/libf 41 42 # path for optional packages, but default set to ".void_dir" 43 RRTM_PATH=$LMDGCM/.void_dir 44 SISVAT_PATH=$LMDGCM/.void_dir 42 45 COSP_PATH=$LMDGCM/.void_dir 43 46 CHEM_PATH=$LMDGCM/.void_dir … … 76 79 [-p PHYS] : set of physical parametrizations (in libf/phyPHYS), (default: lmd) 77 80 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug . 78 [-c false/MPI1/ MPI2] : (Earth) coupling with ocean model : MPI1/MPI2/false (default: false)81 [-c false/MPI1/OMCT] : coupling with ocean model : MPI1/OMCT/false (default: false) 79 82 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false) 80 83 false : no vegetation model … … 138 141 sisvat="$2" ; shift ; shift ;; 139 142 143 "-rrtm") 144 rrtm="$2" ; shift ; shift ;; 145 140 146 "-chimie") 141 147 chimie="$2" ; shift ; shift ;; … … 250 256 if [[ "$couple" != "false" ]] 251 257 then 252 CPP_KEY="$CPP_KEY CPP_COUPLE" 253 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 254 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io" 258 if [[ "$couple" == "MPI1" ]] 259 then 260 CPP_KEY="$CPP_KEY CPP_COUPLE" 261 export OASIS_INCDIR=$LMDGCM/../../prism/X64/build/lib/psmile.MPI1 262 export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib 263 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 264 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lmpp_io" 265 else 266 CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT" 267 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 268 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu" 269 fi 255 270 fi 256 271 … … 310 325 then 311 326 CPP_KEY="$CPP_KEY CPP_SISVAT" 312 sed -e 's/^#src::sisvat/src::sisvat/' bld.cfg > bld.tmp 313 mv bld.tmp bld.cfg 327 SISVAT_PATH="$LIBFGCM/%PHYS/sisvat" 328 #sed -e 's/^#src::sisvat/src::sisvat/' bld.cfg > bld.tmp 329 #mv bld.tmp bld.cfg 330 fi 331 332 if [[ "$rrtm" == "true" ]] 333 then 334 CPP_KEY="$CPP_KEY CPP_RRTM" 335 RRTM_PATH="$LIBFGCM/%PHYS/rrtm" 336 #sed -e 's/^#src::rrtm/src::rrtm/' bld.cfg > bld.tmp 337 #mv bld.tmp bld.cfg 314 338 fi 315 339 … … 536 560 echo "%DYN $DYN" >> $config_fcm 537 561 echo "%PHYS phy${physique}" >> $config_fcm 562 echo "%RRTM $RRTM_PATH" >> $config_fcm 563 echo "%SISVAT $SISVAT_PATH" >> $config_fcm 538 564 echo "%COSP $COSP_PATH" >> $config_fcm 539 565 echo "%CHEM $CHEM_PATH" >> $config_fcm … … 567 593 568 594 #eventual cleanup for SISVAT 569 sed -e 's/^src::sisvat/#src::sisvat/' bld.cfg > bld.tmp 570 mv bld.tmp bld.cfg 595 #sed -e 's/^src::sisvat/#src::sisvat/' bld.cfg > bld.tmp 596 #mv bld.tmp bld.cfg 597 598 #eventual cleanup for RRTM 599 #sed -e 's/^src::rrtm/#src::rrtm/' bld.cfg > bld.tmp 600 #mv bld.tmp bld.cfg 571 601 572 602
Note: See TracChangeset
for help on using the changeset viewer.