Changeset 4959


Ignore:
Timestamp:
Jun 3, 2024, 4:50:58 PM (7 months ago)
Author:
abarral
Message:

replace exported env vars in arch files with $(pwd)
copy .env from config/

Location:
BOL/script_install_amaury
Files:
1 added
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/arch_local/arch-local-gfortran.env

    r4901 r4959  
    1 NETCDF_INCDIR="-I$(nf-config --includedir)"
    2 # Ugly hack for orchidee <=2.0
    3 NETCDF_LIBDIR="-L$(nf-config --flibs | sed -e "s/-L//")"
    4 NETCDF95_INCDIR="-I$LMDGCM/../../include"
    5 NETCDF95_LIBDIR="-L$LMDGCM/../../lib"
    6 NETCDF95_LIB="-lnetcdf95"
    7 
    8 # Exported
    9 IOIPSL_INCDIR="-I$IOIPSL_INCDIR_ -I$IOIPSL_LIBDIR_"
    10 IOIPSL_LIBDIR="-L$IOIPSL_INCDIR_ -L$IOIPSL_LIBDIR_"
    11 IOIPSL_LIB="-lioipsl"
    12 
    13 # Exported
    14 XIOS_INCDIR="-I$XIOS_INCDIR_"
    15 XIOS_LIBDIR="-L$XIOS_LIBDIR_"
    16 XIOS_LIB="-lxios -lstdc++"
    17 
    18 # Exported
    19 ORCH_INCDIR="-I$ORCH_INCDIR_ -I$ORCH_LIBDIR_"
    20 ORCH_LIBDIR="-L$ORCH_LIBDIR_ -L$ORCH_INCDIR_"
     1# empty
  • BOL/script_install_amaury/arch_local/arch-local-gfortran.path

    r4901 r4959  
    22# Ugly hack for orchidee <=2.0
    33NETCDF_LIBDIR="-L$(nf-config --flibs | sed -e "s/-L//")"
    4 NETCDF95_INCDIR="-I$LMDGCM/../../include"
    5 NETCDF95_LIBDIR="-L$LMDGCM/../../lib"
     4NETCDF95_INCDIR="-I$(pwd)/../../include"
     5NETCDF95_LIBDIR="-L$(pwd)/../../lib"
    66NETCDF95_LIB="-lnetcdf95"
    77
    88# Exported
    9 IOIPSL_INCDIR="-I$IOIPSL_INCDIR_ -I$IOIPSL_LIBDIR_"
    10 IOIPSL_LIBDIR="-L$IOIPSL_INCDIR_ -L$IOIPSL_LIBDIR_"
     9IOIPSL_INCDIR="-I$(pwd)/../IOIPSL/inc -I$(pwd)/../IOIPSL/lib"
     10IOIPSL_LIBDIR="-L$(pwd)/../IOIPSL/inc -L$(pwd)/../IOIPSL/lib"
    1111IOIPSL_LIB="-lioipsl"
    1212
    1313# Exported
    14 XIOS_INCDIR="-I$XIOS_INCDIR_"
    15 XIOS_LIBDIR="-L$XIOS_LIBDIR_"
     14XIOS_INCDIR="-I$(pwd)/../XIOS/inc"
     15XIOS_LIBDIR="-L$(pwd)/../XIOS/lib"
    1616XIOS_LIB="-lxios -lstdc++"
    1717
    1818# Exported
    19 ORCH_INCDIR="-I$ORCH_INCDIR_ -I$ORCH_LIBDIR_"
    20 ORCH_LIBDIR="-L$ORCH_LIBDIR_ -L$ORCH_INCDIR_"
     19ORCH_INCDIR="-I$(pwd)/../ORCHIDEE/inc -I$(pwd)/../ORCHIDEE/lib"
     20ORCH_LIBDIR="-L$(pwd)/../ORCHIDEE/inc -L$(pwd)/../ORCHIDEE/lib"
  • BOL/script_install_amaury/install_lmdz.sh

    r4957 r4959  
    386386
    387387    if [[ ! -f "$MODEL/modipsl/modeles/$component/arch/arch-$arch.fcm" ]]; then
    388         \cp -f "$arch_dir/arch-$arch.fcm" "$MODEL/modipsl/modeles/$component/arch"
    389         \cp -f "$arch_dir/arch-$arch.path" "$MODEL/modipsl/modeles/$component/arch"
     388        cp -f "$arch_dir/arch-$arch."{fcm,path,env} "$MODEL/modipsl/modeles/$component/arch"
    390389
    391390        if [[ $component = "XIOS" ]]; then
     
    510509
    511510    echo "IOIPSL compiled $(date)"
    512 
    513     IOIPSL_LIBDIR_="$MODEL/modipsl/modeles/IOIPSL/lib"
    514     IOIPSL_INCDIR_="$MODEL/modipsl/modeles/IOIPSL/inc"
    515511}
    516512
     
    541537        echo "Compiled XIOS $(date)"
    542538    fi
    543 
    544     XIOS_LIBDIR_="$MODEL/modipsl/modeles/XIOS/lib"
    545     XIOS_INCDIR_="$MODEL/modipsl/modeles/XIOS/inc"
    546539}
    547540
     
    594587        fi
    595588
    596         local varenv="IOIPSL_LIBDIR_=$IOIPSL_LIBDIR_ IOIPSL_INCDIR_=$IOIPSL_INCDIR_ XIOS_INCDIR_=$XIOS_INCDIR_ XIOS_LIBDIR_=$XIOS_LIBDIR_"
    597589        if [[ $parallel = "none" ]]; then
    598             echo "$varenv ./makeorchidee_fcm $xios_orchid $opt_orc -parallel none -arch $arch -j $make_j" > compile.sh
     590            echo "./makeorchidee_fcm $xios_orchid $opt_orc -parallel none -arch $arch -j $make_j" > compile.sh
    599591        else
    600592            if [[ ! -d src_parallel ]]; then
     
    602594            fi
    603595            {
    604                 echo "$varenv ./makeorchidee_fcm -j $make_j $xios_orchid $opt_orc -parallel $parallel -arch $arch"
     596                echo "./makeorchidee_fcm -j $make_j $xios_orchid $opt_orc -parallel $parallel -arch $arch"
    605597            } > compile.sh
    606598        fi
     
    612604        echo "Compiled ORCHIDEE $(date)"
    613605    fi
    614 
    615     ORCH_INCDIR_="$MODEL/modipsl/modeles/ORCHIDEE/inc"
    616     ORCH_LIBDIR_="$MODEL/modipsl/modeles/ORCHIDEE/lib"
    617606}
    618607
     
    666655
    667656    # Compile
    668     local varenv="IOIPSL_LIBDIR_=\"$IOIPSL_LIBDIR_\" IOIPSL_INCDIR_=\"$IOIPSL_INCDIR_\" ORCH_INCDIR_=\"$ORCH_INCDIR_\" ORCH_LIBDIR_=\"$ORCH_LIBDIR_\" XIOS_INCDIR_=\"$XIOS_INCDIR_\" XIOS_LIBDIR_=\"$XIOS_LIBDIR_\""
    669657    makelmdz="makelmdz_fcm $optim_debug -arch $arch -j $make_j"
    670658    local para_compile_opt="-mem -parallel $parallel"; if [[ $parallel = "none" ]]; then para_compile_opt=""; fi
    671     echo "$varenv ./$makelmdz $opt_rad $opt_cosp $opt_makelmdz_xios $opt_aer $opt_inlandsis $opt_isotopes -p $compphysiq -d ${grid_resolution} -v $fcm_veget_version $para_compile_opt gcm" > compile.sh
     659    echo "./$makelmdz $opt_rad $opt_cosp $opt_makelmdz_xios $opt_aer $opt_inlandsis $opt_isotopes -p $compphysiq -d ${grid_resolution} -v $fcm_veget_version $para_compile_opt gcm" > compile.sh
    672660    echo "Compiling lmdz using $(\cat compile.sh) (log: $lmdzlog) $(date)"
    673661    chmod +x ./compile.sh
Note: See TracChangeset for help on using the changeset viewer.