Changeset 4446 for LMDZ6/branches/Portage_acc/makelmdz_fcm
- Timestamp:
- Mar 1, 2023, 6:22:39 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Portage_acc/makelmdz_fcm
r4103 r4446 25 25 inlandsis=false 26 26 rrtm=false 27 rad="old "27 rad="oldrad" 28 28 dust=false 29 29 strataer=false … … 45 45 isotrac=false 46 46 force_compile=false 47 cplocninca=false 47 48 48 49 arch_defined="FALSE" … … 94 95 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug 95 96 [-c false/MPI1/OMCT] : coupling with ocean model : MPI1/OMCT/false (default: false) 96 [-v false/orchidee 2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)97 [-v false/orchideetrunk/orchidee2.1/orchidee2.0/orchidee1.9] : version of the vegetation model to include (default: false) 97 98 false : no vegetation model 98 orchidee2.1 : compile using ORCHIDEE 2.1 (or more recent version) 99 orchideetrunk : compile using ORCHIDEE trunk from revision 7757 or higher 100 orchidee2.1 : compile using ORCHIDEE 2.1 until 4.1 included or until revision 7757 on the trunk 99 101 orchidee2.0 : compile using ORCHIDEE 2.0 100 102 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 101 103 true : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6 102 104 [-chimie INCA/false] : with INCA chemistry model or without (default: false) 105 [-cplocninca ] : allow transfer of species from PISCES to INCA (default: false) 103 106 [-cosp true/false] : compile with/without cosp package (default: false) 104 107 [-cosp2 true/false] : compile with/without cosp2 package (default: false) … … 106 109 [-inlandsis true/false] : compile with/without inlandsis package (default: false) 107 110 [-rrtm true/false] : compile with/without rrtm package (default: false) 108 [-rad old /rrtm/ecrad] : compile with old/rrtm/ecrad radiatif code (default: old)111 [-rad oldrad/rrtm/ecrad] : compile with oldrad/rrtm/ecrad radiatif code (default: oldrad) 109 112 [-dust true/false] : compile with/without the dust package by Boucher and co (default: false) 110 113 [-strataer true/false] : compile with/without the strat aer package by Boucher and co (default: false) … … 165 168 166 169 "-rrtm") 167 rrtm="$2" ; if [ "$2" = "false" ] ; then rad="old " ; else rad="rrtm" ; fi ; shift ; shift ;;170 rrtm="$2" ; if [ "$2" = "false" ] ; then rad="oldrad" ; else rad="rrtm" ; fi ; shift ; shift ;; 168 171 169 172 "-rad") … … 178 181 "-chimie") 179 182 chimie="$2" ; shift ; shift ;; 183 184 "-cplocninca") 185 cplocninca=TRUE ; shift ;; 180 186 181 187 "-isotopes") … … 364 370 then 365 371 CPP_KEY="$CPP_KEY INCA" 366 INCLUDE="$INCLUDE -I${INCA_INCDIR}"367 LIB="$LIB -L${INCA_LIBDIR} -lchimie"372 INCLUDE="$INCLUDE ${INCA_INCDIR}" 373 LIB="$LIB ${INCA_LIBDIR} ${INCA_LIB}" 368 374 fi 369 375 … … 399 405 else 400 406 CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT" 401 INCLUDE="$INCLUDE -I${OASIS_INCDIR}"402 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"407 INCLUDE="$INCLUDE ${OASIS_INCDIR}" 408 LIB="$LIB ${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu" 403 409 fi 404 410 fi … … 428 434 fi 429 435 430 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" ] 431 then 436 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ] 437 then 438 echo "doing orchidee" 432 439 #NB: option 'true': for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6 433 440 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 434 441 # 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 435 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"442 INCLUDE="${INCLUDE} ${ORCH_INCDIR}" 436 443 CPP_KEY="$CPP_KEY CPP_VEGET" 437 444 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 440 447 fi 441 448 if [[ "$veget" == "orchidee2.0" ]] ; then 442 orch_libs=" sechiba parameters stomate parallel orgloborchidee"449 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee" 443 450 CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT" 444 451 elif [[ "$veget" == "orchidee2.1" ]] ; then 445 orch_libs="sechiba parameters stomate parallel orglob orchidee" 452 CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC" 453 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee" 454 elif [[ "$veget" == "orchideetrunk" ]] ; then 455 orch_libs="-lorchidee" 446 456 else 447 orch_libs=" sechiba parameters stomate parallelorglob"457 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob" 448 458 fi 449 LIB="${LIB} -L${ORCH_LIBDIR}" 450 for lib in ${orch_libs} ; do 451 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 452 LIB="${LIB} -l${LIBPREFIX}$lib " 453 fi 454 done 459 LIB="${LIB} ${ORCH_LIBDIR} ${orch_libs}" 460 # for lib in ${orch_libs} ; do 461 # if [ -f ${ORCH_LIBDIR#-L}/lib${LIBPREFIX}$lib.a ] ; then 462 # LIB="${LIB} -l${LIBPREFIX}$lib " 463 # fi 464 # done 465 echo "orchidee lib" 466 echo ${LIB} 455 467 elif [[ "$veget" != "false" ]] ; then 456 468 echo "Option -v $veget does not exist" … … 492 504 then 493 505 CPP_KEY="$CPP_KEY CPP_IOIPSL" 494 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"495 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"506 INCLUDE="$INCLUDE ${IOIPSL_INCDIR}" 507 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}" 496 508 elif [[ $io == mix ]] 497 509 then 498 510 # For now, xios implies also using ioipsl 499 511 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 500 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"501 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"512 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 513 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 502 514 elif [[ $io == xios ]] 503 515 then 504 516 # For now, xios implies also using ioipsl 505 517 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 506 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"507 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"518 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 519 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 508 520 fi 509 521 … … 529 541 fi 530 542 543 if [[ "$cplocninca" == "TRUE" ]] 544 then 545 CPP_KEY="${CPP_KEY} CPP_CPLOCNINCA" 546 fi 531 547 532 548 533 549 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" 534 LIB="$LIB ${NETCDF_LIBDIR} "550 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 535 551 536 552 ######################################################################## … … 595 611 then 596 612 CPP_KEY="$CPP_KEY CPP_1D" 597 ##in 1D, add dyn3d to include path (because main prog is in physics)598 INCLUDE="$INCLUDE -Ilibf/dyn3d -Ilibf/dyn3d_common"599 613 ## no filtre in 1d: 600 614 FILTRE_PATH=$LMDGCM/.void_dir … … 649 663 650 664 SUFF_NAME=_${dim_full} 651 SUFF_NAME=${SUFF_NAME}_phy${physique} 665 SUFF_NAME=${SUFF_NAME}_phy${physique}_${rad} 652 666 653 667 if [[ "$parallel" != "none" ]]
Note: See TracChangeset
for help on using the changeset viewer.