Changeset 4482 for LMDZ6/branches/LMDZ_ECRad/makelmdz
- Timestamp:
- Mar 29, 2023, 3:14:27 PM (21 months ago)
- Location:
- LMDZ6/branches/LMDZ_ECRad
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_ECRad
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ_ECRad/makelmdz
r4203 r4482 111 111 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug 112 112 [-c false/MPI1/MPI2] : coupling with ocean model : MPI1/MPI2/false (default: false) 113 [-v false/orchidee 2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)113 [-v false/orchideetrunk/orchidee2.1/orchidee2.0/orchidee1.9] : version of the vegetation model to include (default: false) 114 114 false : no vegetation model 115 orchidee2.1 : compile using ORCHIDEE 2.1 (or more recent version) 115 orchideetrunk : compile using ORCHIDEE trunk from revision 7757 or higher 116 orchidee2.1 : compile using ORCHIDEE 2.1 until 4.1 included or until revision 7757 on the trunk 116 117 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version) 117 118 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 … … 123 124 [-inlandsis true/false] : compile with/without inlandsis package (default: false) 124 125 [-rrtm true/false] : compile with/without rrtm package (default: false) 125 [-rad old /rrtm/ecrad] : compile with old/rrtm/ecrad radiatif code (default: old)126 [-rad oldrad/rrtm/ecrad] : compile with oldrad/rrtm/ecrad radiatif code (default: oldrad) 126 127 [-dust true/false] : compile with/without the dust package from Boucher et al. (default: false) 127 128 [-strataer true/false] : compile with/without the strat aer package from Boucher et al. (default: false) … … 195 196 196 197 "-rrtm") 197 rrtm="$2" ; if [ "$2" = "false" ] ; then rad="old " ; else rad="rrtm" ; fi ; shift ; shift ;;198 rrtm="$2" ; if [ "$2" = "false" ] ; then rad="oldrad" ; else rad="rrtm" ; fi ; shift ; shift ;; 198 199 199 200 "-rad") … … 373 374 then 374 375 CPP_KEY="$CPP_KEY INCA" 375 INCLUDE="$INCLUDE -I${INCA_INCDIR}"376 LIB="$LIB -L${INCA_LIBDIR} -lchimie"377 libchimie=" -L${INCA_LIBDIR} -lchimie"376 INCLUDE="$INCLUDE ${INCA_INCDIR}" 377 LIB="$LIB ${INCA_LIBDIR} ${INCA_LIB}" 378 libchimie=" ${INCA_LIBDIR} ${INCA_LIB}" 378 379 fi 379 380 … … 381 382 then 382 383 CPP_KEY="$CPP_KEY CPP_COUPLE" 383 INCLUDE="$INCLUDE -I${OASIS_INCDIR}"384 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"384 INCLUDE="$INCLUDE ${OASIS_INCDIR}" 385 LIB="$LIB ${OASIS_LIBDIR} ${OASIS_LIB}" 385 386 fi 386 387 … … 442 443 443 444 #============================================================================== 444 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" ]445 then 446 447 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"445 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ] 446 then 447 448 INCLUDE="${INCLUDE} ${ORCH_INCDIR}" 448 449 CPP_KEY="$CPP_KEY CPP_VEGET" 449 450 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 452 453 fi 453 454 if [[ "$veget" == "orchidee2.0" ]] ; then 454 orch_libs=" sechiba parameters stomate parallel orgloborchidee"455 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee" 455 456 CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT" 456 457 elif [[ "$veget" == "orchidee2.1" ]] ; then 457 orch_libs="sechiba parameters stomate parallel orglob orchidee" 458 CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC" 459 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee" 460 elif [[ "$veget" == "orchideetrunk" ]] ; then 461 orch_libs="-lorchidee" 458 462 else 459 orch_libs=" sechiba parameters stomate parallelorglob"463 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob" 460 464 fi 461 LIB="${LIB} -L${ORCH_LIBDIR}"462 for lib in ${orch_libs} ; do463 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then464 LIB="${LIB} -l${LIBPREFIX}$lib "465 fi466 done465 LIB="${LIB} ${ORCH_LIBDIR} ${orch_libs}" 466 # for lib in ${orch_libs} ; do 467 # if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 468 # LIB="${LIB} -l${LIBPREFIX}$lib " 469 # fi 470 # done 467 471 elif [[ "$veget" != "false" ]] ; then 468 472 echo "Option -v $veget does not exist" … … 478 482 then 479 483 CPP_KEY="$CPP_KEY CPP_IOIPSL" 480 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"481 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"484 INCLUDE="$INCLUDE ${IOIPSL_INCDIR}" 485 LIB="$LIB ${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl" 482 486 elif [[ $io == mix ]] 483 487 then 484 488 # For now, xios implies also using ioipsl 485 489 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 486 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"487 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"490 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 491 LIB="$LIB ${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl ${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++" 488 492 elif [[ $io == xios ]] 489 493 then 490 494 # For now, xios implies also using ioipsl 491 495 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 492 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"493 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"496 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 497 LIB="$LIB ${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl ${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++" 494 498 fi 495 499 … … 556 560 557 561 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" 558 LIB="$LIB ${NETCDF_LIBDIR} "562 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 559 563 560 564 ######################################################################## … … 707 711 # On enleve tout apres ONLy et on met un "uniq" pour que ca ne recrée pas 708 712 # le makefile si on se contente d'ajouter des lignes dans le ONLY 713 exclude="replay automatic include" 709 714 for str in subroutine "use " "include " ; do 710 grep -i "$str" libf/$dir/*.[Fh] | cut -d\( -f1 | sed -e 's/[Oo][Nn][Ll][Yy].*.$//' | uniq >> tmp77711 grep -i "$str" libf/$dir/*.F90 | cut -d\( -f1 | sed -e 's/[Oo][Nn][Ll][Yy].*.$//' | uniq >> tmp90715 grep -i "$str" libf/$dir/*.[Fh] | sed -e "/$exclude/d" | cut -d\( -f1 | sed -e 's/[Oo][Nn][Ll][Yy].*.$//' | uniq >> tmp77 716 grep -i "$str" libf/$dir/*.F90 | sed -e "/$exclude/d" | cut -d\( -f1 | sed -e 's/[Oo][Nn][Ll][Yy].*.$//' | uniq >> tmp90 712 717 done 713 718 done
Note: See TracChangeset
for help on using the changeset viewer.