Changeset 5044


Ignore:
Timestamp:
Jul 10, 2024, 9:15:41 PM (5 months ago)
Author:
abarral
Message:

move mpi detection after env sourcing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r5043 r5044  
    8787    optim_debug=""
    8888    arch="local"
    89 
    90     local mpi_file
    91     mpi_file=$(readlink -e -f "$(which mpif90)")
    92     path_mpi=$(dirname "$mpi_file")
    93     root_mpi=$(dirname "$path_mpi")
    9489
    9590    arch="local-gfortran"
     
    363358    # shellcheck disable=SC1090
    364359    if [[ -f $default_env_path ]]; then source "$default_env_path"; fi
     360
     361    local mpi_file  # can't be done before as it depends on sourcing the env
     362    mpi_file=$(readlink -e -f "$(which mpif90)")
     363    path_mpi=$(dirname "$mpi_file")
     364    root_mpi=$(dirname "$path_mpi")
    365365}
    366366
Note: See TracChangeset for help on using the changeset viewer.