-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more gfortran debug flag option and fixed FPEs.
- Loading branch information
1 parent
4329e91
commit 29863dc
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,9 @@ $(info DEBUG setting: '$(DEBUG)') | |
ifeq ($(DEBUG), 1) | ||
ifeq ($(findstring gfortran,$(notdir $(FC))),gfortran) | ||
FCFLAGS := -g -Wall -Wextra -Wconversion -Og -pedantic -fcheck=bounds -fmax-errors=5 -std=f2003 -fall-intrinsics | ||
# More Debug Flags | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
drnimbusrain
via email
Author
Member
|
||
# FCFLAGS := -g -Og -Wall -Wextra -pedantic -fcheck=all -fmax-errors=5 -std=f2003 \ | ||
# -fall-intrinsics -fbacktrace -ffpe-trap=invalid,zero,overflow | ||
else ifeq ($(FC),ifort) | ||
FCFLAGS := -g -warn all -check bounds -implicitnone -O0 -error-limit 5 | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks to @zmoon for adding these.