Skip to content

Commit 4c305c8

Browse files
authored
Merge pull request #131 from ajnonaka/update_sundials_readme
Update README to sundials install v.7.1.1
2 parents 12189b2 + 2618cc6 commit 4c305c8

File tree

1 file changed

+14
-35
lines changed

1 file changed

+14
-35
lines changed

ExampleCodes/SUNDIALS/Exec/README_sundials

Lines changed: 14 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ https://computing.llnl.gov/projects/sundials/faq#inst
33

44
Installation
55

6-
# Download sundials-x.y.z.tar.gz file for SUNDIALS and extract it at the same level as amrex.
7-
# Update 6/11/24 - v7.0.0. tested
8-
https://computing.llnl.gov/projects/sundials/sundials-software
9-
6+
# You need SUNDIALS v7.1.1 or later.
7+
# Check https://computing.llnl.gov/projects/sundials/sundials-software to see if it's available for download.
8+
# If so, download sundials-x.y.z.tar.gz and extract it at the same level as amrex using
109
>> tar -xzvf sundials-x.y.z.tar.gz # where x.y.z is the version of sundials
10+
>> mv sundials-x.y.z sundials-src
11+
12+
# If v7.1.1. is not available on the website, clone the git repo directly and use the latest version
13+
# At the same level that amrex is cloned, do:
14+
15+
>> git clone https://github.com/LLNL/sundials.git
16+
>> mv sundials sundials-src
1117

12-
# at the same level that amrex is cloned, do:
18+
# Next
1319

1420
>> mkdir sundials
1521
>> cd sundials
@@ -22,7 +28,7 @@ HOST BUILD
2228
>> mkdir builddir
2329
>> cd builddir
2430

25-
>> cmake -DCMAKE_INSTALL_PREFIX=/pathto/sundials/instdir -DEXAMPLES_INSTALL_PATH=/pathto/sundials/instdir/examples -DENABLE_MPI=ON ../../sundials-x.y.z
31+
>> cmake -DCMAKE_INSTALL_PREFIX=/pathto/sundials/instdir -DEXAMPLES_INSTALL_PATH=/pathto/sundials/instdir/examples -DENABLE_MPI=ON ../../sundials-src
2632

2733
######################
2834
NVIDIA/CUDA BUILD
@@ -34,7 +40,7 @@ NVIDIA/CUDA BUILD
3440
>> mkdir builddir_cuda
3541
>> cd builddir_cuda
3642

37-
>> cmake -DCMAKE_INSTALL_PREFIX=/pathto/sundials/instdir_cuda -DEXAMPLES_INSTALL_PATH=/pathto/sundials/instdir_cuda/examples -DENABLE_CUDA=ON -DENABLE_MPI=ON ../../sundials-x.y.z
43+
>> cmake -DCMAKE_INSTALL_PREFIX=/pathto/sundials/instdir_cuda -DEXAMPLES_INSTALL_PATH=/pathto/sundials/instdir_cuda/examples -DENABLE_CUDA=ON -DENABLE_MPI=ON ../../sundials-src
3844

3945
######################
4046

@@ -55,31 +61,4 @@ NVIDIA/CUDA BUILD
5561

5662
>> make -j4 # optional to have 'USE_CUDA=TRUE' as well
5763

58-
# in your inputs file, you will need to have:
59-
60-
# INTEGRATION
61-
## integration.type can take on the following values:
62-
## 0 or "ForwardEuler" => Native AMReX Forward Euler integrator
63-
## 1 or "RungeKutta" => Native AMReX Explicit Runge Kutta controlled by integration.rk.type
64-
## 2 or "SUNDIALS" => SUNDIALS backend controlled by integration.sundials.strategy
65-
integration.type = <pick a value>
66-
67-
## Native AMReX Explicit Runge-Kutta parameters
68-
#
69-
## integration.rk.type can take the following values:
70-
### 0 = User-specified Butcher Tableau
71-
### 1 = Forward Euler
72-
### 2 = Trapezoid Method
73-
### 3 = SSPRK3 Method
74-
### 4 = RK4 Method
75-
integration.rk.type = 3
76-
77-
## If using the SUNDIALS Submodule, then
78-
## compile with USE_SUNDIALS=TRUE or AMReX_SUNDIALS=ON and
79-
## set strategy here:
80-
#
81-
## integration.sundials.strategy can take the following values:
82-
### ERK = ERKStep from ARKode with SSPRK3 Method
83-
### MRI = MRIStep from ARKode with Explict Trapezoid Method
84-
### MRITEST = MRIStep from ARKode modified to use no-op inner f0
85-
integration.sundials.strategy = ERK
64+
# Refer to inputs to see how to enable different integrators

0 commit comments

Comments
 (0)