-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile.defs
More file actions
79 lines (69 loc) · 2.83 KB
/
Makefile.defs
File metadata and controls
79 lines (69 loc) · 2.83 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#*****************************************************************************!
#
# C F D F V M A K E F I L E
#
#*****************************************************************************!
#Set the Compiler for the program
COMPILER=GNU
#Set equation system
EQNSYS=euler
#EQNSYS=navierstokes
# Compiler Flags
AR =ar
AR_FLAGS=clr
#---------------------------------------------------------------------------------------------------------------------------------#
# CGNS
# #---------------------------------------------------------------------------------------------------------------------------------#
# # Directly added in src/Makefile_PostProc
CGNS_VERSION = 3.1.4
CGNS_SUBVERSION = 2
#Set Compiler strings
ENVIRONMENT=$(COMPILER)
#---------------------------------------------------------------------------------------------------------------------------------#
# INTEL
#---------------------------------------------------------------------------------------------------------------------------------#
ifeq ($(findstring INTEL,$(ENVIRONMENT)),INTEL)
FC=ifort
FCFLAGS =-fpp -assume bscc -r8 -i4 -traceback -warn all
FLFLAGS =-r8 -i4 -traceback -assume bscc
ifeq ($(findstring DEBUG,$(ENVIRONMENT)),DEBUG)
FCFLAGS +=-g -O0 -fpe0 -traceback \
-check all,noarg_temp_created,noformat,nooutput_conversion,pointer,bounds,uninit
FLFLAGS +=-g -O0
else
FCFLAGS +=-O3 -xhost -vec-report0 -no-prec-div
FLFLAGS +=-O3 -xhost -vec-report0 -no-prec-div
endif
# enable for openmp parallel execution
#FCFLAGS += -openmp
#FLFLAGS += -openmp
endif
#---------------------------------------------------------------------------------------------------------------------------------#
# GNU
#---------------------------------------------------------------------------------------------------------------------------------#
ifeq ($(findstring GNU,$(ENVIRONMENT)),GNU)
FC=gfortran
FCFLAGS=-fdefault-real-8 -fdefault-double-8 -fbackslash
FLFLAGS=-fdefault-real-8 -fdefault-double-8 -fbackslash
GCCVERSIONGTEQ10 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 10)
ifeq "$(GCCVERSIONGTEQ10)" "1"
FCFLAGS += -fallow-argument-mismatch
FLFLAGS += -fallow-argument-mismatch
endif
ifeq ($(findstring DEBUG,$(ENVIRONMENT)),DEBUG)
FCFLAGS += -g -O0 -ggdb3 -fbounds-check -finit-real=nan -fbacktrace -Wunused #-ffpe-trap=invalid,zero,overflow,underflow,denormal
FLFLAGS += -g -O0 -ggdb3 -fbounds-check -finit-real=nan -fbacktrace -Wunused #-ffpe-trap=invalid,zero,overflow,underflow,denormal
else
FCFLAGS += -O3 -march=native
FLFLAGS += -O3 -march=native
endif
# enable for openmp parallel execution
#FCFLAGS += -fopenmp
#FLFLAGS += -fopenmp
# enable for gprof profiling
#FCFLAGS += -pg
#FLFLAGS += -pg
endif
CFDFV_LIB = libcfdfv.a
#Includes
INCDIRS = -I../share/cgnslib_$(CGNS_VERSION)/LINUX64/include