Changeset 2645
- Timestamp:
- Mar 23, 2022, 10:24:23 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz_fcm
r2441 r2645 65 65 66 66 CPP_KEY="" 67 INCLUDE =""67 INCLUDE_DIR="" 68 68 LIB="" 69 69 adjnt="" … … 173 173 174 174 "-include") 175 INCLUDE ="$INCLUDE-I$2" ; shift ; shift ;;175 INCLUDE_DIR="$INCLUDE_DIR -I$2" ; shift ; shift ;; 176 176 177 177 "-cpp") … … 324 324 then 325 325 CPP_KEY="$CPP_KEY INCA" 326 INCLUDE ="$INCLUDE-I${INCA_INCDIR}"326 INCLUDE_DIR="$INCLUDE_DIR -I${INCA_INCDIR}" 327 327 LIB="$LIB -L${INCA_LIBDIR} ${INCA_LIB}" 328 328 fi … … 335 335 export OASIS_INCDIR=$LMDGCM/../../prism/X64/build/lib/psmile.MPI1 336 336 export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib 337 INCLUDE ="$INCLUDE-I${OASIS_INCDIR}"337 INCLUDE_DIR="$INCLUDE_DIR -I${OASIS_INCDIR}" 338 338 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 339 339 else 340 340 CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT" 341 INCLUDE ="$INCLUDE-I${OASIS_INCDIR}"341 INCLUDE_DIR="$INCLUDE_DIR -I${OASIS_INCDIR}" 342 342 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 343 343 fi … … 381 381 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 382 382 # 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 383 INCLUDE ="${INCLUDE} ${ORCHIDEE_INCDIR}"383 INCLUDE_DIR="${INCLUDE_DIR} ${ORCHIDEE_INCDIR}" 384 384 CPP_KEY="$CPP_KEY CPP_VEGET" 385 385 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 426 426 then 427 427 CPP_KEY="$CPP_KEY CPP_IOIPSL" 428 INCLUDE ="$INCLUDE${IOIPSL_INCDIR}"428 INCLUDE_DIR="$INCLUDE_DIR ${IOIPSL_INCDIR}" 429 429 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}" 430 430 elif [[ $io == mix ]] … … 432 432 # For now, xios implies also using ioipsl 433 433 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS" 434 INCLUDE ="$INCLUDE${IOIPSL_INCDIR} ${XIOS_INCDIR}"434 INCLUDE_DIR="$INCLUDE_DIR ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 435 435 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 436 436 elif [[ $io == xios ]] … … 438 438 # For now, xios implies also using ioipsl 439 439 CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT" 440 INCLUDE ="$INCLUDE${IOIPSL_INCDIR} ${XIOS_INCDIR}"440 INCLUDE_DIR="$INCLUDE_DIR ${IOIPSL_INCDIR} ${XIOS_INCDIR}" 441 441 LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}" 442 442 fi … … 453 453 then 454 454 CHEM_PATH="${LIBFGCM}/chim${physique}" 455 INCLUDE ="$INCLUDE-I${LIBFGCM}/chim${physique}"455 INCLUDE_DIR="$INCLUDE_DIR -I${LIBFGCM}/chim${physique}" 456 456 fi 457 457 … … 475 475 then 476 476 CLOUD_PATH="${LIBFGCM}/phy${physique}/cloud${physique}" 477 INCLUDE ="$INCLUDE-I${LIBFGCM}/phy${physique}/cloud${physique}"477 INCLUDE_DIR="$INCLUDE_DIR -I${LIBFGCM}/phy${physique}/cloud${physique}" 478 478 fi 479 479 … … 482 482 then 483 483 AERONO_PATH="${LIBFGCM}/aerono${physique}" 484 INCLUDE ="$INCLUDE-I${LIBFGCM}/aerono${physique}"484 INCLUDE_DIR="$INCLUDE_DIR -I${LIBFGCM}/aerono${physique}" 485 485 fi 486 486 487 487 # NETCDF library include/library paths 488 INCLUDE ="$INCLUDE${NETCDF_INCDIR}"488 INCLUDE_DIR="$INCLUDE_DIR ${NETCDF_INCDIR}" 489 489 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 490 490 … … 596 596 CPP_KEY="$CPP_KEY CPP_1D" 597 597 ##in 1D, add dyn3d to include path (because main prog is in physics) 598 INCLUDE ="$INCLUDE-Ilibf/dyn3d -Ilibf/dyn3d_common"598 INCLUDE_DIR="$INCLUDE_DIR -Ilibf/dyn3d -Ilibf/dyn3d_common" 599 599 ## no filtre in 1d: 600 600 FILTRE_PATH=$LMDGCM/.void_dir … … 706 706 707 707 echo "%ARCH $arch" >> $config_fcm 708 echo "%INCDIR $INCLUDE " >> $config_fcm708 echo "%INCDIR $INCLUDE_DIR" >> $config_fcm 709 709 echo "%LIB $LIB" >> $config_fcm 710 710 echo "%ROOT_PATH $PWD" >> $config_fcm
Note: See TracChangeset
for help on using the changeset viewer.