Changeset 1695
- Timestamp:
- Apr 17, 2017, 4:10:07 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 21 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DOC/chantiers/commit_importants.log
r1682 r1695 2016 2016 of the horizontal domain 2017 2017 2018 ********************** 2019 **** commit_v1695 **** 2020 ********************** 2021 Reorganization of the way paths to external libraries are handles by makelmdz_fcm 2022 and makelmdz. This will ease interfacing with Dynamico which follows simillar rules 2023 with respect to a given external library ,e.g. for SOMELIBRARY, in the arch.path file: 2024 SOMELIBRARY_LIBDIR="-L/path/to/the/library/libdir -L/possible/other/required/path" 2025 SOMELIBRARY_LIB"-lsomelib -lsomeotherrequiredlib" 2026 SOMELIBRARY_INCDIR"-I/path/to/the/library/incdir -I/possible/other/required/include/path" 2027 -
trunk/LMDZ.COMMON/arch/arch-AMD64_CICLAD.path
r1622 r1695 1 NETCDF_LIBDIR="-L/opt/netcdf/pgf/lib -lnetcdf" 2 NETCDF_INCDIR=-I/opt/netcdf/pgf/include 3 IOIPSL_INCDIR=/home/spiga/IOIPSL_SVN/modipsl/lib 4 IOIPSL_LIBDIR=/home/spiga/IOIPSL_SVN/modipsl/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/opt/netcdf/pgf/lib" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/opt/netcdf/pgf/include" 6 7 IOIPSL_INCDIR="-I/home/spiga/IOIPSL_SVN/modipsl/lib" 8 IOIPSL_LIBDIR="-L/home/spiga/IOIPSL_SVN/modipsl/lib" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-CICLADifort.path
r1622 r1695 1 NETCDF_LIBDIR="-L/opt/netcdf3/ifort/lib -lnetcdf" 2 NETCDF_INCDIR=-I/opt/netcdf3/ifort/include 3 IOIPSL_INCDIR=$LMDGCM/ioipsl/modipsl/lib 4 IOIPSL_LIBDIR=$LMDGCM/ioipsl/modipsl/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/opt/netcdf3/ifort/lib" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/opt/netcdf3/ifort/include" 6 7 IOIPSL_INCDIR="-I$ROOT/ioipsl/modipsl/lib" 8 IOIPSL_LIBDIR="-L$ROOT/ioipsl/modipsl/lib" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-GNOMEp_large.path
r1306 r1695 1 NETCDF_LIBDIR="-Wl,-rpath -Wl,/san/common/umr8539/bigDATA_netcdf.4.0.1_aymeric/lib -L/san/common/umr8539/bigDATA_netcdf.4.0.1_aymeric/lib -lnetcdf -lnetcdff" 2 NETCDF_INCDIR=-I/san/common/umr8539/bigDATA_netcdf.4.0.1_aymeric/include 3 IOIPSL_INCDIR=/san/common/umr8539/bigDATA_ioipsl_aymeric/modipsl/lib 4 IOIPSL_LIBDIR=/san/common/umr8539/bigDATA_ioipsl_aymeric/modipsl/lib 1 NETCDF_LIBDIR="-Wl,-rpath -Wl,/san/common/umr8539/bigDATA_netcdf.4.0.1_aymeric/lib -L/san/common/umr8539/bigDATA_netcdf.4.0.1_aymeric/lib" 2 NETCDF_LIB="-lnetcdf -lnetcdff" 3 NETCDF_INCDIR="-I/san/common/umr8539/bigDATA_netcdf.4.0.1_aymeric/include" 4 5 IOIPSL_INCDIR="-I/san/common/umr8539/bigDATA_ioipsl_aymeric/modipsl/lib" 6 IOIPSL_LIBDIR="-L/san/common/umr8539/bigDATA_ioipsl_aymeric/modipsl/lib" 7 IOIPSL_LIB="-lioipsl" -
trunk/LMDZ.COMMON/arch/arch-GNOMEs.path
r1622 r1695 1 NETCDF_LIBDIR="-L/usr/local/lib -lnetcdf" 2 NETCDF_INCDIR=-I/usr/local/include 3 IOIPSL_INCDIR=/san/home/millour/Planeto/work_dyn_830/trunk/LMDZ.COMMON/ioipsl/modipsl/lib 4 IOIPSL_LIBDIR=/san/home/millour/Planeto/work_dyn_830/trunk/LMDZ.COMMON/ioipsl/modipsl/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/usr/local/lib" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/usr/local/include" 6 7 IOIPSL_INCDIR="-I/san/home/millour/Planeto/work_dyn_830/trunk/LMDZ.COMMON/ioipsl/modipsl/lib" 8 IOIPSL_LIBDIR="-L/san/home/millour/Planeto/work_dyn_830/trunk/LMDZ.COMMON/ioipsl/modipsl/lib" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-X64_ADA.fcm
r1572 r1695 6 6 %CPP_FLAGS -P 7 7 %FPP_DEF NC_DOUBLE LAPACK BLAS SGEMV=DGEMV SGEMM=DGEMM FFT_FFTW 8 %BASE_FFLAGS -integer-size 32 -real-size 64 -align all - mcmodel=large -auto8 %BASE_FFLAGS -integer-size 32 -real-size 64 -align all -auto 9 9 %PROD_FFLAGS -O2 -ip -fp-model strict -axAVX,SSE4.2 10 10 %DEV_FFLAGS -p -g -O1 -fpe0 -traceback 11 %DEBUG_FFLAGS -p -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check bounds,format,output_conversion,pointers,uninit -debug 11 %DEBUG_FFLAGS -p -g -O0 -fpe-all=0 -traceback -ftrapuv -fp-stack-check -check bounds,format,output_conversion,pointers,uninit -debug -ftz 12 12 %C_COMPILER gcc 13 13 %C_OPTIM -O3 14 14 %MPI_FFLAGS 15 %OMP_FFLAGS -openmp 16 %BASE_LD - shared-intel -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -L/smplocal/pub/FFTW/3.3.3_dyn/lib -lfftw3 -Wl,-rpath=/smplocal/pub/NetCDF/4.1.3/mpi/lib:/smplocal/pub/HDF5/1.8.9/par/lib:/smplocal/pub/FFTW/3.3.3_dyn/lib15 %OMP_FFLAGS -openmp -openmp-threadprivate=compat 16 %BASE_LD -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -L/smplocal/pub/FFTW/3.3.3_dyn/lib -lfftw3 -Wl,-rpath=/smplocal/pub/FFTW/3.3.3_dyn/lib 17 17 %MPI_LD 18 %OMP_LD -openmp 18 %OMP_LD -openmp -openmp-threadprivate=compat 19 19 -
trunk/LMDZ.COMMON/arch/arch-X64_ADA.path
r1367 r1695 1 NETCDF_LIBDIR="${NETCDF_LDFLAGS:--L/smplocal/pub/NetCDF/4.1.3/mpi/lib -lnetcdff -lnetcdf -L/smplocal/pub/HDF5/1.8.9/par/lib -Bstatic -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -Bdynamic -lz}" 2 NETCDF_INCDIR="${NETCDF_FFLAGS:--I/smplocal/pub/HDF5/1.8.9/par/include -I/smplocal/pub/NetCDF/4.1.3/mpi/include}" 3 IOIPSL_INCDIR=/smphome/rech/psl/rpsl035/IOIPSL_PLUS/modipsl/lib 4 IOIPSL_LIBDIR=/smphome/rech/psl/rpsl035/IOIPSL_PLUS/modipsl/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 7 ORCH_INCDIR=$LMDGCM/../../lib 8 ORCH_LIBDIR=$LMDGCM/../../lib 9 OASIS_INCDIR=$LMDGCM/../../oasis3-mct/BLD/build/lib/psmile.MPI1 10 OASIS_LIBDIR=$LMDGCM/../../oasis3-mct/BLD/lib 11 INCA_LIBDIR=$LMDGCM/../INCA/config/lib 12 INCA_INCDIR=$LMDGCM/../INCA/config/lib 1 ROOT=$PWD 2 NETCDF_INCDIR="-I $NETCDF_INC_DIR" 3 #NETCDF_LIBDIR="-L $NETCDF_LIB_DIR" 4 #NETCDF_LIB="-lnetcdff -lnetcdf" 13 5 6 MPI_INCDIR="" 7 MPI_LIBDIR="" 8 MPI_LIB="" 9 10 #HDF5_INCDIR="-I $HDF5_INC_DIR" 11 #HDF5_LIBDIR="-L $HDF5_LIB_DIR" 12 #HDF5_LIB="-lhdf5_hl -lhdf5 -lhdf5 -lz" 13 14 IOIPSL_INCDIR="-I/smphome/rech/psl/rpsl035/IOIPSL_PLUS/modipsl/lib" 15 IOIPSL_LIBDIR="-L/smphome/rech/psl/rpsl035/IOIPSL_PLUS/modipsl/lib" 16 IOIPSL_LIB="-lioipsl" 17 18 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 19 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 20 XIOS_LIB="-lxios -lstdc++" 21 22 ORCHIDEE_INCDIR="-I$ROOT/../ORCHIDEE/lib" 23 ORCHIDEE_LIBDIR="-L$ROOT/../ORCHIDEE/lib" 24 ORCHIDEE_LIB="-lorchidee " 25 26 OASIS_INCDIR="-I$ROOT/../oasis3-mct/BLD/build/lib/psmile.MPI1" 27 OASIS_LIBDIR="-L$ROOT/../oasis3-mct/BLD/lib" 28 OASIS_LIB="-lpsmile.MPI1 -lscrip -lmct -lmpeu" 29 30 INCA_INCDIR="-I$ROOT/../INCA/config/lib" 31 INCA_LIBDIR="-I$ROOT/../INCA/config/lib" 32 INCA_LIB="-lchimie" 33 -
trunk/LMDZ.COMMON/arch/arch-X64_MESU.path
r1628 r1695 1 NETCDF_LIBDIR="-L${NETCDF_FORT_ROOT}/lib -lnetcdff" 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L${NETCDF_FORT_ROOT}/lib" 4 NETCDF_LIB="-lnetcdff" 2 5 NETCDF_INCDIR="-I${NETCDF_FORT_ROOT}/include" 3 IOIPSL_INCDIR=$LMDGCM/ioipsl/modipsl/lib4 IOIPSL_LIBDIR=$LMDGCM/ioipsl/modipsl/lib5 XIOS_INCDIR=$LMDGCM/../XIOS/inc6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib7 6 7 IOIPSL_INCDIR="-I$ROOT/ioipsl/modipsl/lib" 8 IOIPSL_LIBDIR="-L$ROOT/ioipsl/modipsl/lib" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-X64_OCCIGEN.path
r1671 r1695 1 NETCDF_LIBDIR="-L${NETCDFF_LIBDIR} -lnetcdff -lnetcdf" 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L${NETCDFF_LIBDIR}" 4 NETCDF_LIB="-lnetcdff -lnetcdf" 2 5 NETCDF_INCDIR="-I${NETCDF_INCDIR}" 3 IOIPSL_INCDIR=$LMDGCM/ioipsl/modipsl/lib 4 IOIPSL_LIBDIR=$LMDGCM/ioipsl/modipsl/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 6 7 IOIPSL_INCDIR="-I$ROOT/ioipsl/modipsl/lib" 8 IOIPSL_LIBDIR="-L$ROOT/ioipsl/modipsl/lib" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-gfortran.path
r1622 r1695 1 NETCDF_LIBDIR="-L/home/aymeric/Science/MODELES/LMDZ.COMMON/netcdf/gfortran_netcdf-4.0.1/lib -lnetcdf" 2 NETCDF_INCDIR=-I/home/aymeric/Science/MODELES/LMDZ.COMMON/netcdf/gfortran_netcdf-4.0.1/include 3 IOIPSL_INCDIR=/home/aymeric/Science/MODELES/LMDZ.COMMON/ioipsl/modipsl/lib 4 IOIPSL_LIBDIR=/home/aymeric/Science/MODELES/LMDZ.COMMON/ioipsl/modipsl/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/home/aymeric/Science/MODELES/LMDZ.COMMON/netcdf/gfortran_netcdf-4.0.1/lib" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/home/aymeric/Science/MODELES/LMDZ.COMMON/netcdf/gfortran_netcdf-4.0.1/include" 6 7 IOIPSL_INCDIR="-I/home/aymeric/Science/MODELES/LMDZ.COMMON/ioipsl/modipsl/lib" 8 IOIPSL_LIBDIR="-L/home/aymeric/Science/MODELES/LMDZ.COMMON/ioipsl/modipsl/lib" 9 10 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 11 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 12 XIOS_LIB="-lxios -lstdc++" 13 -
trunk/LMDZ.COMMON/arch/arch-linux-64bit-para.path
r1622 r1695 1 NETCDF_LIBDIR="-L/donnees/emlmd/netcdf64-4.0.1_ifort/lib -lnetcdf" 2 NETCDF_INCDIR=-I/donnees/emlmd/netcdf64-4.0.1_ifort/include 3 IOIPSL_INCDIR=/donnees/sllmd/ioipsl/modipsl/ifortpara/lib 4 IOIPSL_LIBDIR=/donnees/sllmd/ioipsl/modipsl/ifortpara/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/donnees/emlmd/netcdf64-4.0.1_ifort/lib"" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/donnees/emlmd/netcdf64-4.0.1_ifort/include" 6 7 IOIPSL_INCDIR="-I/donnees/sllmd/ioipsl/modipsl/ifortpara/lib" 8 IOIPSL_LIBDIR="-L/donnees/sllmd/ioipsl/modipsl/ifortpara/lib" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-linux-64bit.path
r1622 r1695 1 NETCDF_LIBDIR="-L/donnees/emlmd/netcdf64-4.0.1_pgi/lib -lnetcdf" 2 NETCDF_INCDIR=-I/donnees/emlmd/netcdf64-4.0.1_pgi/include 3 IOIPSL_INCDIR=/donnees/emlmd/modipsl64_pgi/modipsl/lib 4 IOIPSL_LIBDIR=/donnees/emlmd/modipsl64_pgi/modipsl/lib 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 7 ORCH_INCDIR=/u/fairhead/modipsl_ioipsl_3/lib 8 ORCH_LIBDIR=/u/fairhead/modipsl_ioipsl_3/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/donnees/emlmd/netcdf64-4.0.1_pgi/lib" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/donnees/emlmd/netcdf64-4.0.1_pgi/include" 6 7 IOIPSL_INCDIR="-I/donnees/emlmd/modipsl64_pgi/modipsl/lib" 8 IOIPSL_LIBDIR="-L/donnees/emlmd/modipsl64_pgi/modipsl/lib" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-linux-ifort-para.path
r1622 r1695 1 NETCDF_LIBDIR="-L/d2/emlmd/netcdf64-4.0.1_ifort/lib -lnetcdf" 2 NETCDF_INCDIR=-I/d2/emlmd/netcdf64-4.0.1_ifort/include 3 IOIPSL_INCDIR=/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort 4 IOIPSL_LIBDIR=/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/d2/emlmd/netcdf64-4.0.1_ifort/lib" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/d2/emlmd/netcdf64-4.0.1_ifort/include" 6 7 IOIPSL_INCDIR="-I/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort" 8 IOIPSL_LIBDIR="-L/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/arch/arch-linux-ifort.path
r1622 r1695 1 NETCDF_LIBDIR="-L/d2/emlmd/netcdf64-4.0.1_ifort/lib -lnetcdf" 2 NETCDF_INCDIR=-I/d2/emlmd/netcdf64-4.0.1_ifort/include 3 IOIPSL_INCDIR=/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort 4 IOIPSL_LIBDIR=/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort 5 XIOS_INCDIR=$LMDGCM/../XIOS/inc 6 XIOS_LIBDIR=$LMDGCM/../XIOS/lib 1 ROOT=$PWD 2 3 NETCDF_LIBDIR="-L/d2/emlmd/netcdf64-4.0.1_ifort/lib" 4 NETCDF_LIB="-lnetcdf" 5 NETCDF_INCDIR="-I/d2/emlmd/netcdf64-4.0.1_ifort/include" 6 7 IOIPSL_INCDIR="-I/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort" 8 IOIPSL_LIBDIR="-L/u/sllmd/LMDZ5/ioipsl/modipsl/lib-ifort" 9 IOIPSL_LIB="-lioipsl" 10 11 XIOS_INCDIR="-I$ROOT/../XIOS/inc" 12 XIOS_LIBDIR="-L$ROOT/../XIOS/lib" 13 XIOS_LIB="-lxios -lstdc++" 14 -
trunk/LMDZ.COMMON/makelmdz
r1661 r1695 401 401 CPP_KEY="$CPP_KEY INCA" 402 402 INCLUDE="$INCLUDE -I${INCA_INCDIR}" 403 LIB="$LIB -L${INCA_LIBDIR} -lchimie"404 libchimie=" -L${INCA_LIBDIR} -lchimie"403 LIB="$LIB -L${INCA_LIBDIR} ${INCA_LIB}" 404 libchimie=" -L${INCA_LIBDIR} ${INCA_LIB}" 405 405 fi 406 406 … … 409 409 CPP_KEY="$CPP_KEY CPP_COUPLE" 410 410 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 411 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"411 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 412 412 fi 413 413 … … 472 472 then 473 473 474 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"474 INCLUDE="${INCLUDE} ${ORCHIDEE_INCDIR}" 475 475 CPP_KEY="$CPP_KEY CPP_VEGET" 476 476 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 483 483 orch_libs="sechiba parameters stomate parallel orglob" 484 484 fi 485 LIB="${LIB} -L${ORCH_LIBDIR}" 486 for lib in ${orch_libs} ; do 487 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 488 LIB="${LIB} -l${LIBPREFIX}$lib " 489 fi 490 done 485 LIB="${LIB} -L${ORCHIDEE_LIBDIR} ${ORCHIDEE_LIB}" 491 486 elif [[ "$veget" != "false" ]] ; then 492 487 echo "Option -v $veget does not exist" … … 498 493 then 499 494 CPP_KEY="$CPP_KEY CPP_IOIPSL" 500 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"501 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"495 INCLUDE="$INCLUDE ${IOIPSL_INCDIR}" 496 LIB="$LIB -L${IOIPSL_LIBDIR} ${IOIPSL_LIB}" 502 497 elif [[ $io == mix ]] 503 498 then 504 499 # For now, xios implies also using ioipsl 505 500 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 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"501 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 502 LIB="$LIB -L${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 508 503 elif [[ $io == xios ]] 509 504 then 510 505 # For now, xios implies also using ioipsl 511 506 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 512 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"513 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"507 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 508 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 514 509 fi 515 510 … … 549 544 fi 550 545 551 546 # NETCDF library include/library paths 552 547 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" 553 LIB="$LIB ${NETCDF_LIBDIR} "548 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 554 549 555 550 ######################################################################## -
trunk/LMDZ.COMMON/makelmdz_fcm
r1661 r1695 338 338 CPP_KEY="$CPP_KEY INCA" 339 339 INCLUDE="$INCLUDE -I${INCA_INCDIR}" 340 LIB="$LIB -L${INCA_LIBDIR} -lchimie"340 LIB="$LIB -L${INCA_LIBDIR} ${INCA_LIB}" 341 341 fi 342 342 … … 349 349 export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib 350 350 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 351 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lmpp_io"351 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 352 352 else 353 353 CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT" 354 354 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 355 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.MPI1 -lscrip -lmct -lmpeu"355 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 356 356 fi 357 357 fi … … 394 394 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 395 395 # 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 396 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"396 INCLUDE="${INCLUDE} ${ORCHIDEE_INCDIR}" 397 397 CPP_KEY="$CPP_KEY CPP_VEGET" 398 398 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 405 405 orch_libs="sechiba parameters stomate parallel orglob" 406 406 fi 407 LIB="${LIB} -L${ORCH_LIBDIR}" 408 for lib in ${orch_libs} ; do 409 if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then 410 LIB="${LIB} -l${LIBPREFIX}$lib " 411 fi 412 done 407 LIB="${LIB} -L${ORCHIDEE_LIBDIR} ${ORCHIDEE_LIB}" 413 408 elif [[ "$veget" != "false" ]] ; then 414 409 echo "Option -v $veget does not exist" … … 444 439 then 445 440 CPP_KEY="$CPP_KEY CPP_IOIPSL" 446 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"447 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"441 INCLUDE="$INCLUDE ${IOIPSL_INCDIR}" 442 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}" 448 443 elif [[ $io == mix ]] 449 444 then 450 445 # For now, xios implies also using ioipsl 451 446 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 452 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"453 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"447 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 448 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 454 449 elif [[ $io == xios ]] 455 450 then 456 451 # For now, xios implies also using ioipsl 457 452 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 458 INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"459 LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"453 INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 454 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 460 455 fi 461 456 … … 488 483 fi 489 484 485 # NETCDF library include/library paths 490 486 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" 491 LIB="$LIB ${NETCDF_LIBDIR} "487 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 492 488 493 489 ########################################################################
Note: See TracChangeset
for help on using the changeset viewer.