Changeset 27370


Ignore:
Timestamp:
11/09/22 17:31:18 (2 years ago)
Author:
seroussi
Message:

CHG: use FC variable if provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/m1qn3/install.sh

    r26393 r27370  
    2626patch src/src/m1qn3.f patch/m1qn3.f.patch
    2727
    28 if which ifort >/dev/null; then
    29         FC="ifort"
    30 else
    31         FC="gfortran"
    32         if [ `uname` == "Darwin" ]; then
    33                 FC="gfortran -arch x86_64"
     28if [ -z "${FC-}" ]; then
     29        if which ifort >/dev/null; then
     30                FC="ifort"
     31        else
     32                FC="gfortran"
     33                if [ `uname` == "Darwin" ]; then
     34                        FC="gfortran -arch x86_64"
     35                fi
    3436        fi
    3537fi
     38echo "Using fortran compiler: $FC"
    3639
    3740# Compile and install
Note: See TracChangeset for help on using the changeset viewer.