Skip to content

Commit

Permalink
Fixing gfortran debug check for CI case.
Browse files Browse the repository at this point in the history
  • Loading branch information
drnimbusrain committed Aug 4, 2023
1 parent 6465d05 commit d7cfa3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ NC ?= 1
# Compile flags
$(info DEBUG setting: '$(DEBUG)')
ifeq ($(DEBUG), 1)
ifeq ($(FC),gfortran)
ifeq ($(findstring gfortran,$(notdir $(FC))),gfortran)
FCFLAGS := -g -Wall -Wextra -Wconversion -Og -pedantic -fcheck=bounds -fmax-errors=5 -std=f2003 -fall-intrinsics
else ifeq ($(FC),ifort)
FCFLAGS := -g -warn all -check bounds -implicitnone -O0 -error-limit 5
Expand All @@ -29,6 +29,7 @@ else ifeq ($(DEBUG), 0)
else
$(error invalid setting for DEBUG, should be 0 or 1 but is '$(DEBUG)')
endif
$(info FCFLAGS: '$(FCFLAGS)')

# NETCDF Settings here
LIBS :=
Expand Down

0 comments on commit d7cfa3a

Please sign in to comment.