-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathmake.type.gravity
32 lines (22 loc) · 1005 Bytes
/
make.type.gravity
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
include builds/make.type.hydro
POISSON_SOLVER ?= -DPARIS
#Include Gravity
DFLAGS += -DGRAVITY
DFLAGS += $(POISSON_SOLVER)
#Keep the Gravity arrays resident in the GPU for high efficiency
#NOTE: If using PARTICLES and GRAVITY_GPU is turned on, then PARTICLES_GPU has to be turned on
#NOTE: If using GRAVITY and MPI_GPU is turned on, then GRAVITY_GPU has to be turned on
DFLAGS += -DGRAVITY_GPU
# Solve the Gradient of the Potential using a fourth order scheme (5 points)
DFLAGS += -DGRAVITY_5_POINTS_GRADIENT
# Write the Gravitational Potential to the output files
# DFLAGS += -DOUTPUT_POTENTIAL
# Include an analytical potential on top on the Poisson Potential
# DFLAGS += -DGRAVITY_ANALYTIC_COMP
DFLAGS += -DPARALLEL_OMP
#-- OMP_NUM_THREADS should be set in make.host.*
DFLAGS += -DN_OMP_THREADS=$(OMP_NUM_THREADS)
#Select if Paris will do GPU MPI transfers
#If not specified, Paris will do GPU MPI transfers by default
#This is set in the system make.host file
DFLAGS += $(PARIS_MPI_GPU)