Changeset 2645


Ignore:
Timestamp:
Mar 23, 2022, 10:24:23 AM (3 years ago)
Author:
emillour
Message:

Common Dynamics:
Minor improvement in makelmdz_fcm: rename internal variable "INCLUDE"
as "INCLUDE_DIR" to avoid collisions with environment variable "INCLUDE"
present on some systems.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r2441 r2645  
    6565
    6666CPP_KEY=""
    67 INCLUDE=""
     67INCLUDE_DIR=""
    6868LIB=""
    6969adjnt=""
     
    173173     
    174174      "-include")
    175           INCLUDE="$INCLUDE -I$2" ; shift ; shift ;;
     175          INCLUDE_DIR="$INCLUDE_DIR -I$2" ; shift ; shift ;;
    176176
    177177      "-cpp")
     
    324324then
    325325   CPP_KEY="$CPP_KEY INCA"
    326    INCLUDE="$INCLUDE -I${INCA_INCDIR}"
     326   INCLUDE_DIR="$INCLUDE_DIR -I${INCA_INCDIR}"
    327327   LIB="$LIB -L${INCA_LIBDIR} ${INCA_LIB}"
    328328fi
     
    335335        export OASIS_INCDIR=$LMDGCM/../../prism/X64/build/lib/psmile.MPI1
    336336        export OASIS_LIBDIR=$LMDGCM/../../prism/X64/lib
    337         INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
     337        INCLUDE_DIR="$INCLUDE_DIR -I${OASIS_INCDIR}"
    338338        LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}"
    339339    else
    340340        CPP_KEY="$CPP_KEY CPP_COUPLE CPP_OMCT"
    341         INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
     341        INCLUDE_DIR="$INCLUDE_DIR -I${OASIS_INCDIR}"
    342342        LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}"
    343343    fi
     
    381381#    For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments
    382382#    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}"
    384384   CPP_KEY="$CPP_KEY CPP_VEGET"
    385385# temporary, for Orchidee versions 1.9.* (before openmp activation)
     
    426426then
    427427   CPP_KEY="$CPP_KEY CPP_IOIPSL"
    428    INCLUDE="$INCLUDE ${IOIPSL_INCDIR}"
     428   INCLUDE_DIR="$INCLUDE_DIR ${IOIPSL_INCDIR}"
    429429   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB}"
    430430elif [[ $io == mix ]]
     
    432432   # For now, xios implies also using ioipsl
    433433   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS"
    434    INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     434   INCLUDE_DIR="$INCLUDE_DIR ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
    435435   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    436436elif [[ $io == xios ]]
     
    438438   # For now, xios implies also using ioipsl
    439439   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}"
    441441   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    442442fi
     
    453453then
    454454   CHEM_PATH="${LIBFGCM}/chim${physique}"
    455    INCLUDE="$INCLUDE -I${LIBFGCM}/chim${physique}"
     455   INCLUDE_DIR="$INCLUDE_DIR -I${LIBFGCM}/chim${physique}"
    456456fi
    457457
     
    475475then
    476476   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}"
    478478fi
    479479
     
    482482then
    483483   AERONO_PATH="${LIBFGCM}/aerono${physique}"
    484    INCLUDE="$INCLUDE -I${LIBFGCM}/aerono${physique}"
     484   INCLUDE_DIR="$INCLUDE_DIR -I${LIBFGCM}/aerono${physique}"
    485485fi
    486486
    487487# NETCDF library include/library paths
    488 INCLUDE="$INCLUDE ${NETCDF_INCDIR}"
     488INCLUDE_DIR="$INCLUDE_DIR ${NETCDF_INCDIR}"
    489489LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}"
    490490
     
    596596  CPP_KEY="$CPP_KEY CPP_1D"
    597597##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"
    599599## no filtre in 1d:
    600600  FILTRE_PATH=$LMDGCM/.void_dir
     
    706706
    707707echo "%ARCH          $arch"          >> $config_fcm
    708 echo "%INCDIR        $INCLUDE"       >> $config_fcm
     708echo "%INCDIR        $INCLUDE_DIR"       >> $config_fcm
    709709echo "%LIB           $LIB"           >> $config_fcm
    710710echo "%ROOT_PATH     $PWD"           >> $config_fcm
Note: See TracChangeset for help on using the changeset viewer.