-
Notifications
You must be signed in to change notification settings - Fork 31
/
make_axisem.macros_release.TEMPLATE
82 lines (69 loc) · 2.8 KB
/
make_axisem.macros_release.TEMPLATE
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
79
80
81
#------------------------------------------------------------------------------#
# #
# Standard Makefile Macro Setup for Axisem #
# The variables set here will affect MESHER, SOLVER and Postprocessing #
# compilation and submitting. #
# #
#------------------------------------------------------------------------------#
# Set name of mpirun command on your system
MPIRUN = mpirun
# Enable NetCDF
# Is needed to create wavefield files for Instaseis or MCKernel
USE_NETCDF = true
# Use parallel netcdf. Enable, if your system supports it (or on HPC environments)
USE_PAR_NETCDF = false
# Path to NetCDF libraries. If you used a system function to install it, leave
# it empty. The Makefile will use /usr/include and /usr/lib in this case.
NETCDF_PATH =
# compile without MPI (possible values: 'false', 'true')
# make sure to build mesh with one processor, USE_PAR_NETCDF needs to be false
SERIAL = false
# Include the file mpif.h, instead of using the FORTRAN MPI module
# Sometimes necessary when the local OpenMPI-version was not compiled with the
# same version of the compiler as the one specified as $FC
INCLUDE_MPI = false
####################################
# Choose compiler names and flags: #
####################################
# GFORTRAN (fast)
# OpenMP is supported by the MESHER and is useful for high-frequency
# Meshes, i.e. <5s period. Uses up to 8 threads. Does not affect the SOLVER.
CC = gcc
FC = mpif90
FFLAGS = -O3 -march=native -fopenmp
CFLAGS = -O3 -march=native
LDFLAGS = -O3 -march=native -fopenmp
# GFORTRAN (debug)
#CC = gcc
#FC = mpif90
#FFLAGS = -g -fbacktrace -Warray-temporaries -fcheck-array-temporaries -fbounds-check -frange-check -pedantic
#CFLAGS = -g -fbacktrace -Wall
#LDFLAGS = -g -fbacktrace -Wall
# PORTLAND (fast)
#CC = pgcc
#FC = mpif90
#FFLAGS = -fast
#CFLAGS = -fast
#LDFLAGS = -fast
# PORTLAND (debug)
#CC = pgcc
#FC = mpif90
#FFLAGS = --Mbounds --traceback -g
#CFLAGS = --Mbounds --traceback -g
#LDFLAGS = --Mbounds --traceback -g
# Intel Compiler suite (fast)
#CC = mpiicc
#FC = mpiifort
#FFLAGS = -vec-report:0 -shared-intel -heap-arrays 10 -O3 -xHOST
#CFLAGS = -O3 -xHost
#LDFLAGS = -O3 -xHost
# Intel Compiler suite (debug)
#CC = mpiicc
#FC = mpiifort
#FFLAGS = -vec-report:0 -g -shared-intel -mcmodel=medium -check all -traceback -heap-arrays 10
#CFLAGS = -g -traceback
#LDFLAGS = -g -traceback
# Cray: byteswapio needed to produce vtk files with big-endian
#FFLAGS = -h byteswapio -O3
#CFLAGS = -O3
#LDFLAGS = -h byteswapio -O3