Blame view

make.inc 1.54 KB
26362238   Dany Dumont   premier depot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# makefile includes for hexagon, portland compilers
# Standard compilers and linkers
CF90= gfortran
CF77= gfortran
CC= gcc
LD= gfortran

# CPP, used internally by compilers - note that some compilers
# need special options for this, consult compiler manual if in trouble
CPP= /usr/bin/cpp -P -traditional

#NCAR graphics compiler wrappers
NCARGCF90=ncargf90
NCARGCF77=ncargf77
NCARGCC=ncargcc
NCARGLD=ncargf90

# Flags for fixed/free format
F90FLG= -ffree-form
F77FLG= -ffixed-form

## uncomment below for debugging and set MPI = NO in makefile
#  CF90 = pgfortran
#  CF77 = pgfortran
#  LD = pgfortran
#  DEBUG_FLAGS = -g -Minform=inform
#  PAR0 =
#  OPTO = 
#  INC_NETCDF = -I/local/netcdf-3.6.2-pgi/include
#  LIB_NETCDF = /local/netcdf-3.6.2-pgi/lib/libnetcdf.a
#  INC_FFTW = -I/opt/fftw/3.2.2/include
#  LIB_FFTW = /opt/fftw/3.2.2/lib/libfftw3.a
#
# Compiler flags, real8 version
#FLAGS= -fast -fastsse -byteswapio -g -r8 -Minform=inform
# use -C for debugging
FFLAGS= -fdefault-real-8 
CFLAGS= 

# Compiler flags, real4 version (needed for NCARG routines)
FFLAGSR4= -fdefault-real-4 
CFLAGSR4= 

# Linker flags
LINKFLAGS= $(FFLAGS)

#Netcdf, FFTW and lapack Libraries
NETCDF_INC =
LIB_LAPACK = /home/nersc/laurentb/Progs/lapack-3.6.1/liblapack.a /home/nersc/laurentb/Progs/lapack-3.6.1/librefblas.a


INCLUDE= $(NETCDF_INC) $(FFTW_INCLUDE)
LIBS =  $(NETCDF_POST_LINK_OPTS) $(FFTW_POST_LINK_OPTS) $(LIB_LAPACK)

# Some fortran compilers have iargc as built in, 
# others as library routine. NB: CPP flags and libs mustr be consistent
CPPFLAGS=-DIARGC -DFFTW -DLAPACK