Blog: Makefile.inc for darter: Makefile.inc.darter

File Makefile.inc.darter, 1.0 KB (added by ehansen, 11 years ago)
Line 
1#FC=ifort
2#F77 = ifort
3#CC = icc
4#CPP = icpc
5FC=ftn
6F77 = ftn
7CC = cc
8CPP = CC
9
10HYPREFLAG = 0
11PTHREADFLAG = 0
12NOUNDERSCORE = 0
13
14MPICH_DIR=/opt/cray/modulefiles/cray-mpich/6.3.0
15HDF5PATH=/opt/cray/modulefiles/cray-hdf5/1.8.12
16#HYPREPATH=/sw/xt-cle3.1/hypre/2.8.0b/cnl3.1_pgi11.9.0
17PTH_PATH=
18FFTW_PATH=/opt/cray/modulefiles/fftw/3.3.0.4
19
20#FFLAGS=-g -Wall -fbacktrace -O2 -fbounds-check
21#FFLAGS=-O3 -xP -fp-model precise !Prevents symmetry breaking in some instances
22#FFLAGS=-g -traceback -check uninit -check pointers -ftz
23FFLAGS=-O3
24
25F77FLAGS=$(FFLAGS)
26LFLAGS = $(FFLAGS)
27
28# fortran compiler needs -auto to force local pointers to stay on the stack.
29ifeq ($(PTHREADFLAG),2)
30 FFLAGS += -auto
31else
32 ifneq ($(PTHREADFLAG),0)
33 $(error PTHREADFLAG should be 0 for no thread support and 2 for portable threads. Compiler does not support PTHREADFLAG=$(PTHREADFLAG))
34 endif
35endif
36
37#The following line was included in response to ticket 124 on the wiki. It can
38# safely be ignored.
39
40FFLAGS2=$(FFLAGS)
41
42HDFLIBS = \
43 -L$(HDF5PATH)/lib \
44 -lhdf5_fortran -lhdf5 -lz
45