Skip to content

Commit

Permalink
clean up inputs files
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnonaka committed Sep 5, 2024
1 parent 1215a42 commit 5792eaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ max_grid_size = 16
nsteps = 12 # 60 # 600
plot_int = 2 # 10 # 100

dt = 8.5e-3 # 1.7e-3 #1.7e-4

# With integration.sundials.type = ERK, dt = 1.6e4 is stable, dt = 1.7e-4 is unstable
# With integration.sundials.type = EX-MRI, dt = 1.7e-4 with fast_dt_ratio = 0.1 is stable
# With integration.sundials.type = EX-MRI, dt = 1.7e-3 with fast_dt_ratio = 0.1 is stable
# With integration.sundials.type = EX-MRI, dt = 8.5e-3 with fast_dt_ratio = 0.1 FAILS
# With integration.sundials.type = EX-MRI, dt = 8.5e-3 with fast_dt_ratio = 0.02 is stable
dt = 8.5e-3

# To replicate heat equation
diffusion_coef = 1.0
Expand All @@ -35,13 +34,12 @@ fast_dt_ratio = 0.02
# abstol = 1.0e-9

# INTEGRATION
# integration.type can take on the following values:
# 0 or "ForwardEuler" => Native AMReX Forward Euler integrator
# 1 or "RungeKutta" => Native AMReX Explicit Runge Kutta controlled by integration.rk.type
# 2 or "SUNDIALS" => SUNDIALS backend controlled by integration.sundials.type
#
# If using the SUNDIALS Submodule, then compile with USE_SUNDIALS=TRUE or
# AMReX_SUNDIALS=ON
## integration.type can take on the following values:
## 0 or "ForwardEuler" => Native AMReX Forward Euler integrator
## 1 or "RungeKutta" => Native AMReX Explicit Runge Kutta controlled by integration.rk.type
## 2 or "SUNDIALS" => SUNDIALS backend controlled by integration.sundials.type
#integration.type = ForwardEuler
#integration.type = RungeKutta
integration.type = SUNDIALS

# Set the SUNDIALS method type:
Expand Down
2 changes: 1 addition & 1 deletion ExampleCodes/SUNDIALS/Single-Rate/Exec/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dt = 1.e-4
## integration.type can take on the following values:
## 0 or "ForwardEuler" => Native AMReX Forward Euler integrator
## 1 or "RungeKutta" => Native AMReX Explicit Runge Kutta controlled by integration.rk.type
## 2 or "SUNDIALS" => SUNDIALS backend controlled by integration.sundials.strategy
## 2 or "SUNDIALS" => SUNDIALS backend controlled by integration.sundials.type
#integration.type = ForwardEuler
#integration.type = RungeKutta
integration.type = SUNDIALS
Expand Down

0 comments on commit 5792eaf

Please sign in to comment.