2014-05-26 13:09:32 +02:00
|
|
|
OPENMP =1
|
|
|
|
PROFILE =0
|
|
|
|
DEBUG = 0
|
|
|
|
|
|
|
|
IRPF90_FLAGS=
|
2015-03-24 09:39:13 +01:00
|
|
|
FC = gfortran -ffree-line-length-none -march=native
|
|
|
|
FCFLAGS= -ffast-math
|
|
|
|
FCFLAGS+= -Ofast
|
|
|
|
MKL=-lblas -llapack
|
|
|
|
# Uncomment to use gfortan with MKL
|
|
|
|
#MKL=-L /opt/intel/composerxe/mkl/lib/intel64/ -lmkl_gf_lp64 -lmkl_core -lmkl_gnu_thread -fopenmp
|
2014-05-26 13:09:32 +02:00
|
|
|
|
|
|
|
ifeq ($(PROFILE),1)
|
|
|
|
FC += -p -g
|
|
|
|
CXX += -pg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OPENMP),1)
|
2014-10-08 23:24:55 +02:00
|
|
|
FC += -fopenmp
|
|
|
|
IRPF90_FLAGS += --openmp
|
2014-05-26 13:09:32 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(DEBUG),1)
|
|
|
|
FCFLAGS = -fcheck=all
|
|
|
|
#FCFLAGS =-O0
|
|
|
|
endif
|