From 59e26f6336797d54f2377c1466e01ce5f2655598 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Fri, 9 Dec 2022 16:30:22 -0600 Subject: [PATCH] Patch for Intel Fortran compiler This PR patches the f_check scripts to detect the ifort compiler. With out this, the value of F_COMPILER is G77 which causes the link phase to use icc rather than ifort, resulting in missing libifcore. --- f_check | 2 +- f_check.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/f_check b/f_check index 02e078b8a..6d171d412 100755 --- a/f_check +++ b/f_check @@ -98,7 +98,7 @@ else vendor=FLANG openmp='-fopenmp' ;; - *ifx*) + *ifort*|*ifx*) vendor=INTEL openmp='-fopenmp' ;; diff --git a/f_check.pl b/f_check.pl index f093b9ad5..889aedd05 100644 --- a/f_check.pl +++ b/f_check.pl @@ -90,7 +90,7 @@ if ($compiler eq "") { if ($compiler =~ /flang/) { $vendor = FLANG; $openmp = "-fopenmp"; - } elsif ($compiler =~ /ifx/) { + } elsif ($compiler =~ /ifort/ || $compiler =~ /ifx/) { $vendor = INTEL; $openmp = "-fopenmp"; } elsif ($compiler =~ /pgf/ || $compiler =~ /nvf/) {