Changeset 1019 for trunk/LMDZ.COMMON/makelmdz
- Timestamp:
- Aug 26, 2013, 9:21:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz
r979 r1019 118 118 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug . 119 119 [-c false/MPI1/MPI2] : (Earth) coupling with ocean model : MPI1/MPI2/false (default: false) 120 [-v false/true] : (Earth) with or without vegetation (default: false) 120 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false) 121 false : no vegetation model 122 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version) 123 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 124 true : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6 125 121 126 [-chimie INCA/false] : (Earth) with INCA chemistry model or without (default: false) 122 127 [-cosp cosp/false] : (Earth) add the cosp model (default: false) … … 292 297 LIB="$LIB ${archfileopt}" 293 298 299 #NB some -I... might be located in the %FPP_FLAGS section of the arch file 300 archfileline=$( grep -i '^%FPP_FLAGS' arch.fcm ) 301 archfileopt=$( echo "-I"${archfileline##*-I} ) ## to be improved... 302 INCLUDE="$INCLUDE ${archfileopt}" 303 294 304 if [[ "$physique" != "nophys" ]] 295 305 then … … 338 348 FLAG_PARA='' 339 349 else 340 FLAG_PARA=" par"350 FLAG_PARA="$paramem" 341 351 fi 342 352 … … 383 393 fi 384 394 385 if [[ "$veget" == "true" ]] 386 then 395 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" ] 396 then 397 398 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 387 399 CPP_KEY="$CPP_KEY CPP_VEGET" 388 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 389 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 400 # temporary, for Orchidee versions 1.9.* (before openmp activation) 401 if [[ "$veget" == "orchidee1.9" ]] ; then 402 CPP_KEY="$CPP_KEY ORCHIDEE_NOOPENMP" 403 fi 404 if [[ "$veget" == "orchidee2.0" ]] ; then 405 orch_libs="sechiba parameters stomate parallel orglob orchidee" 406 else 407 orch_libs="sechiba parameters stomate parallel orglob" 408 fi 409 LIB="${LIB} -L${ORCH_LIBDIR}" 410 for lib in ${orch_libs} ; do 411 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 412 LIB="${LIB} -l${LIBPREFIX}$lib " 413 fi 414 done 415 elif [[ "$veget" != "false" ]] ; then 416 echo "Option -v $veget does not exist" 417 echo "Use ./makelmdz -h for more information" 418 exit 390 419 fi 391 420 … … 406 435 INCLUDE="$INCLUDE"' -I$(LIBF)/cosp' 407 436 fi 437 408 438 409 439 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" … … 535 565 fi 536 566 537 if [[ $veget == "true" ]]567 if [[ $veget != "false" ]] 538 568 then 539 569 SUFF_NAME=${SUFF_NAME}_orch … … 645 675 646 676 # library directory name: 647 if [[ "$parallel" == "none" ]] 648 then 649 nomlib=${arch}_${physique}_${dim_full}_${grille}_${compil_mod} 650 else 651 nomlib=${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_${FLAG_PARA} 652 fi 677 nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'` 678 echo $nomlib 653 679 654 680 if [[ ! -d "${LIBOGCM}/${nomlib}" ]]
Note: See TracChangeset
for help on using the changeset viewer.