Skip to content

Commit 4520e85

Browse files
committed
Merge branch 'development'
2 parents f5b9c9b + 4295c85 commit 4520e85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+336080
-1107
lines changed

Make.Microphysics

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ ifeq ($(INTEGRATOR_DIR), CVODE)
102102
LIBRARY_LOCATIONS += $(CVODE_HOME)/lib
103103
LIBRARIES += -lsundials_cvode -lsundials_sunlinsolband -lsundials_sunlinsolspbcgs -lsundials_sunlinsolsptfqmr -lsundials_sunmatrixsparse -lsundials_nveccuda -lsundials_sunlinsoldense -lsundials_sunlinsolspfgmr -lsundials_sunmatrixband -lsundials_sunnonlinsolfixedpoint -lsundials_nvecserial -lsundials_sunlinsolpcg -lsundials_sunlinsolspgmr -lsundials_sunmatrixdense -lsundials_sunnonlinsolnewton
104104

105+
ifeq ($(USE_CUDA_CVODE),TRUE)
106+
LIBRARIES += -rpath=$(CVODE_HOME)/lib
107+
else
108+
LIBRARIES += -Wl,-rpath,$(CVODE_HOME)/lib
109+
endif
110+
105111
ifeq ($(USE_CUDA_CVODE), TRUE)
106112
DEFINES += -DCUDA_CVODE
107-
108-
LIBRARIES += -rpath=$(CVODE_HOME)/lib
109113
endif
110114

111115
ifeq ($(USE_CVODE_CUSOLVER), TRUE)

integration/VODE90/cuVODE/test/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ your application code that integrates ODEs in a loop over zones.
1414

1515
# Building with CUDA
1616

17-
To build the example with CUDA Fortran, use the PGI compiler and do
18-
`make COMP=PGI USE_CUDA=TRUE CUDA_VERSION=9.0` if, e.g., you are using
19-
CUDA 9.
17+
To build the example with CUDA Fortran, use the PGI compiler and do:
18+
19+
```
20+
make -j COMP=PGI USE_CUDA=TRUE AMREX_USE_CUDA=TRUE USE_GPU_PRAGMA=TRUE CUDA_VERSION=9.0
21+
```
22+
23+
This was tested with PGI 18.10 and CUDA 9.2.148.
24+

integration/numerical_jacobian.F90

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ subroutine test_numerical_jac(state)
161161
use actual_rhs_module
162162
use eos_module, only : eos
163163
use eos_type_module, only : eos_t, eos_input_rt, normalize_abundances
164-
use jacobian_sparsity_module, only: get_jac_entry
164+
use jacobian_sparsity_module, only: get_jac_entry, scale_jac_entry
165165

166166
type (burn_t) :: state
167167
type (burn_t) :: state_num
@@ -193,8 +193,10 @@ subroutine test_numerical_jac(state)
193193
! nets work with, so we convert it to derivatives with respect to
194194
! X and of mass fraction creation rates
195195
do n = 1, nspec_evolve
196-
state % jac(n,:) = state % jac(n,:) * aion(n)
197-
state % jac(:,n) = state % jac(:,n) * aion_inv(n)
196+
do j = 1, neqs
197+
call scale_jac_entry(state, n, j, aion(n))
198+
call scale_jac_entry(state, j, n, aion_inv(n))
199+
enddo
198200
enddo
199201

200202
! Now compute the numerical Jacobian.

0 commit comments

Comments
 (0)