Changeset 5375 for BOL/script_install


Ignore:
Timestamp:
Dec 4, 2024, 2:39:14 PM (12 days ago)
Author:
abarral
Message:

Fetch compiler from arch after lmdz update rather than from the modipsl tar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r5365 r5375  
    357357        fi
    358358    done
    359 
    360     cat <<eod > tt.f90
    361 print*,'coucou'
    362 end
    363 eod
    364     $compiler tt.f90 || a.out
    365     ./a.out >| tt
    366     if [[ $(< tt sed -e 's/ //g' ) != "coucou" ]]; then
    367         echo "problem installing with compiler $compiler"; exit 1
    368     fi
    369     rm tt a.out tt.f90
    370359}
    371360
     
    424413    path_mpi=$(dirname "$mpi_file")
    425414    root_mpi=$(dirname "$path_mpi")
     415}
     416
     417function check_compiler {
     418  # Must be called after init_arch to know which compiler to use
     419    cat <<eod > tt.f90
     420print*,'coucou'
     421end
     422eod
     423    $compiler tt.f90 || a.out
     424    ./a.out >| tt
     425    if [[ $(< tt sed -e 's/ //g' ) != "coucou" ]]; then
     426        echo "problem installing with compiler $compiler"; exit 1
     427    fi
     428    rm tt a.out tt.f90
    426429}
    427430
     
    10481051ensure_correct_option_combinations
    10491052download_modipsl_tar
    1050 init_arch
    10511053check_available_software
    10521054get_lmdz_version
    10531055get_dynamico_icosa_version
    10541056get_orchidee_version
     1057init_arch
     1058check_compiler
    10551059install_netcdf
    10561060install_IOIPSL
Note: See TracChangeset for help on using the changeset viewer.