Changeset 3406 for LMDZ6/branches/DYNAMICO-conv-GC/makelmdz_fcm
- Timestamp:
- Oct 23, 2018, 11:16:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/DYNAMICO-conv-GC/makelmdz_fcm
r2743 r3406 267 267 fi 268 268 # source architecture PATH and ENV files 269 set +e 269 270 source arch.env 270 271 source arch.path 272 set -e 271 273 else 272 274 echo "You must define a target architecture" … … 324 326 CPP_KEY="$CPP_KEY INCA" 325 327 INCLUDE="$INCLUDE -I${INCA_INCDIR}" 326 LIB="$LIB -L${INCA_LIBDIR} -lchimie"328 LIB="$LIB -L${INCA_LIBDIR} ${INCA_LIB}" 327 329 fi 328 330 … … 335 337 export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib 336 338 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 337 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lmpp_io"339 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 338 340 else 339 341 CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT" 340 342 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 341 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"343 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 342 344 fi 343 345 fi … … 372 374 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 373 375 # 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 374 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"376 INCLUDE="${INCLUDE} ${ORCHIDEE_INCDIR}" 375 377 CPP_KEY="$CPP_KEY CPP_VEGET" 376 378 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 383 385 orch_libs="sechiba parameters stomate parallel orglob" 384 386 fi 385 LIB="${LIB} -L${ORCH_LIBDIR}" 386 for lib in ${orch_libs} ; do 387 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 388 LIB="${LIB} -l${LIBPREFIX}$lib " 389 fi 390 done 387 LIB="${LIB} -L${ORCHIDEE_LIBDIR} ${ORCHIDEE_LIB}" 391 388 elif [[ "$veget" != "false" ]] ; then 392 389 echo "Option -v $veget does not exist" … … 422 419 then 423 420 CPP_KEY="$CPP_KEY CPP_IOIPSL" 424 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"425 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"421 INCLUDE="$INCLUDE ${IOIPSL_INCDIR}" 422 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}" 426 423 elif [[ $io == mix ]] 427 424 then 428 425 # For now, xios implies also using ioipsl 429 426 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 430 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"431 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"427 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 428 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 432 429 elif [[ $io == xios ]] 433 430 then 434 431 # For now, xios implies also using ioipsl 435 432 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 436 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"437 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"433 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 434 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 438 435 fi 439 436 … … 445 442 fi 446 443 444 # NETCDF library include/library paths 447 445 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" 448 LIB="$LIB ${NETCDF_LIBDIR} "446 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 449 447 450 448 ######################################################################## … … 671 669 672 670 rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock 671 set +e 673 672 ./build_gcm ${fcm_path} -j $job $full 673 status=$? 674 674 675 675 rm -rf tmp_src … … 684 684 \rm -f $LIBFGCM/grid/dimensions.h 685 685 fi 686 687 if [ $status -ne 0 ]; then 688 exit $status 689 fi
Note: See TracChangeset
for help on using the changeset viewer.