mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Added PGI options in Makefile.
This commit is contained in:
parent
643faa9fb1
commit
5017f9d242
1 changed files with 31 additions and 0 deletions
31
src/Makefile
31
src/Makefile
|
|
@ -75,6 +75,37 @@ ifeq ($(COMPILER),gfortran)
|
|||
endif
|
||||
endif
|
||||
|
||||
#===============================================================================
|
||||
# PGI compiler options
|
||||
#===============================================================================
|
||||
|
||||
ifeq ($(COMPILER),pgi)
|
||||
F90 = pgf90
|
||||
F90FLAGS := -Mpreprocess -Minform=inform
|
||||
LDFLAGS =
|
||||
|
||||
# Since ERFC is currently not supported in the PGI compiler and this intrinsic
|
||||
# is used in the doppler module (which is not actually used yet), it is
|
||||
# removed from the source objects
|
||||
objects := $(subst doppler.o, ,$(objects))
|
||||
|
||||
# Debugging options
|
||||
ifeq ($(DEBUG),yes)
|
||||
F90FLAGS += -g -Mbounds -Mchkptr -Mchkstk -traceback
|
||||
LDFLAGS += -g
|
||||
endif
|
||||
|
||||
# Profiling options
|
||||
ifeq ($(PROFILE),yes)
|
||||
F90FLAGS += -pg
|
||||
LDFLAGS += -pg
|
||||
endif
|
||||
|
||||
ifeq ($(OPTIMIZE),yes)
|
||||
F90FLAGS += -fast -Mipa
|
||||
endif
|
||||
endif
|
||||
|
||||
#===============================================================================
|
||||
# Miscellaneous compiler options
|
||||
#===============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue