Skip to content

Commit b1473ac

Browse files
authored
update to use AMREX Make.sundials (#152)
1 parent 4c7a49d commit b1473ac

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

ExampleCodes/SUNDIALS/Reaction-Diffusion/Exec/GNUmakefile

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ USE_MPI = TRUE
66
USE_OMP = FALSE
77
COMP = gnu
88
DIM = 3
9-
USE_RPATH = TRUE
109
USE_SUNDIALS = TRUE
1110

1211
include $(AMREX_HOME)/Tools/GNUMake/Make.defs
@@ -15,37 +14,6 @@ include ../Source/Make.package
1514
VPATH_LOCATIONS += ../Source
1615
INCLUDE_LOCATIONS += ../Source
1716

18-
ifeq ($(USE_SUNDIALS),TRUE)
19-
ifeq ($(USE_CUDA),TRUE)
20-
SUNDIALS_ROOT ?= $(TOP)../../../../../sundials/instdir_cuda
21-
else
22-
SUNDIALS_ROOT ?= $(TOP)../../../../../sundials/instdir
23-
endif
24-
ifeq ($(NERSC_HOST),perlmutter)
25-
SUNDIALS_LIB_DIR ?= $(SUNDIALS_ROOT)/lib64
26-
else
27-
SUNDIALS_LIB_DIR ?= $(SUNDIALS_ROOT)/lib
28-
endif
29-
30-
USE_CVODE_LIBS ?= TRUE
31-
USE_ARKODE_LIBS ?= TRUE
32-
33-
DEFINES += -DAMREX_USE_SUNDIALS
34-
INCLUDE_LOCATIONS += $(SUNDIALS_ROOT)/include
35-
LIBRARY_LOCATIONS += $(SUNDIALS_LIB_DIR)
36-
37-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_cvode
38-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_arkode
39-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nvecmanyvector
40-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_core
41-
42-
ifeq ($(USE_CUDA),TRUE)
43-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nveccuda
44-
endif
45-
46-
endif
47-
4817
include $(AMREX_HOME)/Src/Base/Make.package
4918

5019
include $(AMREX_HOME)/Tools/GNUMake/Make.rules
51-

ExampleCodes/SUNDIALS/Single-Rate/Exec/GNUmakefile

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ USE_MPI = TRUE
66
USE_OMP = FALSE
77
COMP = gnu
88
DIM = 3
9-
USE_RPATH = TRUE
109
USE_SUNDIALS = TRUE
1110

1211
include $(AMREX_HOME)/Tools/GNUMake/Make.defs
@@ -15,37 +14,6 @@ include ../Source/Make.package
1514
VPATH_LOCATIONS += ../Source
1615
INCLUDE_LOCATIONS += ../Source
1716

18-
ifeq ($(USE_SUNDIALS),TRUE)
19-
ifeq ($(USE_CUDA),TRUE)
20-
SUNDIALS_ROOT ?= $(TOP)../../../../../sundials/instdir_cuda
21-
else
22-
SUNDIALS_ROOT ?= $(TOP)../../../../../sundials/instdir
23-
endif
24-
ifeq ($(NERSC_HOST),perlmutter)
25-
SUNDIALS_LIB_DIR ?= $(SUNDIALS_ROOT)/lib64
26-
else
27-
SUNDIALS_LIB_DIR ?= $(SUNDIALS_ROOT)/lib
28-
endif
29-
30-
USE_CVODE_LIBS ?= TRUE
31-
USE_ARKODE_LIBS ?= TRUE
32-
33-
DEFINES += -DAMREX_USE_SUNDIALS
34-
INCLUDE_LOCATIONS += $(SUNDIALS_ROOT)/include
35-
LIBRARY_LOCATIONS += $(SUNDIALS_LIB_DIR)
36-
37-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_cvode
38-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_arkode
39-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nvecmanyvector
40-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_core
41-
42-
ifeq ($(USE_CUDA),TRUE)
43-
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nveccuda
44-
endif
45-
46-
endif
47-
4817
include $(AMREX_HOME)/Src/Base/Make.package
4918

5019
include $(AMREX_HOME)/Tools/GNUMake/Make.rules
51-

0 commit comments

Comments
 (0)