Changeset 4426 for LMDZ6/trunk/makelmdz_fcm
- Timestamp:
- Feb 9, 2023, 5:27:51 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/makelmdz_fcm
r4283 r4426 370 370 then 371 371 CPP_KEY="$CPP_KEY INCA" 372 INCLUDE="$INCLUDE -I${INCA_INCDIR}"373 LIB="$LIB -L${INCA_LIBDIR} -lchimie"372 INCLUDE="$INCLUDE ${INCA_INCDIR}" 373 LIB="$LIB ${INCA_LIBDIR} ${INCA_LIB}" 374 374 fi 375 375 … … 405 405 else 406 406 CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT" 407 INCLUDE="$INCLUDE -I${OASIS_INCDIR}"408 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" 409 409 fi 410 410 fi … … 436 436 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ] 437 437 then 438 echo "doing orchidee" 438 439 #NB: option 'true': for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6 439 440 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 440 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 441 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"442 INCLUDE="${INCLUDE} ${ORCH_INCDIR}" 442 443 CPP_KEY="$CPP_KEY CPP_VEGET" 443 444 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 446 447 fi 447 448 if [[ "$veget" == "orchidee2.0" ]] ; then 448 orch_libs=" sechiba parameters stomate parallel orgloborchidee"449 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee" 449 450 CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT" 450 451 elif [[ "$veget" == "orchidee2.1" ]] ; then 451 452 CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC" 452 orch_libs=" sechiba parameters stomate parallel orgloborchidee"453 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee" 453 454 elif [[ "$veget" == "orchideetrunk" ]] ; then 454 orch_libs=" orchidee"455 orch_libs="-lorchidee" 455 456 else 456 orch_libs=" sechiba parameters stomate parallelorglob"457 orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob" 457 458 fi 458 LIB="${LIB} -L${ORCH_LIBDIR}" 459 for lib in ${orch_libs} ; do 460 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 461 LIB="${LIB} -l${LIBPREFIX}$lib " 462 fi 463 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} 464 467 elif [[ "$veget" != "false" ]] ; then 465 468 echo "Option -v $veget does not exist" … … 501 504 then 502 505 CPP_KEY="$CPP_KEY CPP_IOIPSL" 503 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"504 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"506 INCLUDE="$INCLUDE ${IOIPSL_INCDIR}" 507 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}" 505 508 elif [[ $io == mix ]] 506 509 then 507 510 # For now, xios implies also using ioipsl 508 511 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 509 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"510 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}" 511 514 elif [[ $io == xios ]] 512 515 then 513 516 # For now, xios implies also using ioipsl 514 517 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 515 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"516 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}" 517 520 fi 518 521 … … 545 548 546 549 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" 547 LIB="$LIB ${NETCDF_LIBDIR} "550 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 548 551 549 552 ########################################################################
Note: See TracChangeset
for help on using the changeset viewer.