Changeset 1019 for trunk/LMDZ.COMMON/makelmdz_fcm
- Timestamp:
- Aug 26, 2013, 9:21:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz_fcm
r979 r1019 32 32 bands="" 33 33 scatterers="" 34 job=1 35 full='' 34 36 35 37 LMDGCM=`/bin/pwd` … … 40 42 CHEM_PATH=$LMDGCM/.void_dir 41 43 # Path to fcm utility: 42 fcm_path=$LMDGCM/tools/fcm/bin 44 ##fcm_path=$LMDGCM/tools/fcm/bin 45 fcm_path=$(dirname $(which fcm)) 43 46 44 47 ######################################################################## … … 72 75 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug . 73 76 [-c false/MPI1/MPI2] : (Earth) coupling with ocean model : MPI1/MPI2/false (default: false) 74 [-v false/true] : (Earth) with or without vegetation (default: false) 77 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false) 78 false : no vegetation model 79 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version) 80 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 81 true : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6 75 82 [-chimie INCA/false] : (Earth) with INCA chemistry model or without (default: false) 76 83 [-cosp cosp/false] : (Earth) add the cosp model (default: false) … … 84 91 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 85 92 [-link LINKS] : additional links with other libraries 93 [-j n] : active parallel compiling on ntask 94 [-full] : full recompiling 86 95 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) 87 96 [-ext_src path] : path to an additional set of routines to compile with the model … … 158 167 "-ext_src") 159 168 EXT_SRC=$2 ; shift ; shift ;; 169 170 "-j") 171 job=$2 ; shift ; shift ;; 172 173 "-full") 174 full="-full" ; shift ;; 160 175 161 176 "-arch") … … 259 274 fi 260 275 261 if [[ "$veget" == "true" ]] 262 then 276 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" ] 277 then 278 #NB: option 'true': for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6 279 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 280 # option orchidee1.9 : Compile with ORCHIDEE version up to the inclusion of OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 281 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 263 282 CPP_KEY="$CPP_KEY CPP_VEGET" 264 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 265 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 283 # temporary, for Orchidee versions 1.9.* (before openmp activation) 284 if [[ "$veget" == "orchidee1.9" ]] ; then 285 CPP_KEY="$CPP_KEY ORCHIDEE_NOOPENMP" 286 fi 287 if [[ "$veget" == "orchidee2.0" ]] ; then 288 orch_libs=orchidee 289 else 290 orch_libs="sechiba parameters stomate parallel orglob" 291 fi 292 LIB="${LIB} -L${ORCH_LIBDIR}" 293 for lib in ${orch_libs} ; do 294 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 295 LIB="${LIB} -l${LIBPREFIX}$lib " 296 fi 297 done 298 elif [[ "$veget" != "false" ]] ; then 299 echo "Option -v $veget does not exist" 300 echo "Use ./makelmdz_fcm -h for more information" 301 exit 266 302 fi 267 303 … … 444 480 fi 445 481 446 if [[ $veget == "true" ]]482 if [[ $veget != "false" ]] 447 483 then 448 484 SUFF_NAME=${SUFF_NAME}_orch … … 497 533 498 534 rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock 499 ./build_gcm 535 ./build_gcm ${fcm_path} -j $job $full 500 536 501 537 rm -rf tmp_src
Note: See TracChangeset
for help on using the changeset viewer.