Skip to content

Commit 6724c20

Browse files
Update Fortran Makefiles
By default if you don't specify the `FC` in the make invocation, it will set `f77` as the fortran compiler. To prevent this, it is necesary to set the `FC` variable explicitly or remove the `?` character.
1 parent e061d4e commit 6724c20

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Fortran/Himeno/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FC ?= gfortran
1+
FC = gfortran
22
FFLAGS ?= -O3
33
SRC = himeno.f90
44
TARGET ?= himeno

Fortran/MATMUL/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SOURCES = matmul.f90 time.f90
33
FILE ?= main.f90
44
TARGET ?= matmul
55
FFLAGS = -O3
6-
FC ?= gfortran
6+
FC = gfortran
77

88
default: run
99

Fortran/NUCCOR/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FC ?= gfortran
1+
FC = gfortran
22
FLAGS ?= -O3 -fopenmp
33
objects = mtc_patch.o mtc.o mtc_openmp.o mtc_main.o
44

0 commit comments

Comments
 (0)