Skip to content

Commit

Permalink
Update make for SUNDIALS
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Apr 11, 2024
1 parent 774839c commit e2f1008
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ExampleCodes/SUNDIALS/Exec/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ DEFINES += -DAMREX_USE_SUNDIALS
INCLUDE_LOCATIONS += $(SUNDIALS_ROOT)/include
LIBRARY_LOCATIONS += $(SUNDIALS_LIB_DIR)

LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_cvode
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_arkode
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nvecmanyvector
LIBRARIES += -lsundials_cvode
LIBRARIES += -lsundials_arkode
LIBRARIES += -lsundials_nvecmanyvector

ifneq (,$(wildcard $(SUNDIALS_LIB_DIR)/libsundials_core*))
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_core
endif

ifeq ($(USE_CUDA),TRUE)
LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nveccuda
LIBRARIES += -lsundials_nveccuda
endif

endif
Expand Down

0 comments on commit e2f1008

Please sign in to comment.