Skip to content

Commit

Permalink
remove set_slow_fast_timestep_ratio and add input file
Browse files Browse the repository at this point in the history
  • Loading branch information
prkkumar committed Jul 17, 2024
1 parent ffa94a0 commit a906cb8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 48 deletions.
14 changes: 0 additions & 14 deletions ExampleCodes/SUNDIALS/Reaction-Diffusion/Exec/inputs_forward_euler

This file was deleted.

24 changes: 0 additions & 24 deletions ExampleCodes/SUNDIALS/Reaction-Diffusion/Exec/inputs_rk3

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
##
n_cell = 32
max_grid_size = 16

Expand All @@ -6,6 +7,10 @@ plot_int = 100

dt = 1.e-5

# To replicate heat equation
diffusion_coef = 1.0
reaction_coef = 1.0

# Use adaptive time stepping and set integrator relative and absolute tolerances
# adapt_dt = true
# reltol = 1.0e-4
Expand Down Expand Up @@ -33,12 +38,9 @@ integration.type = SUNDIALS
# documentation for the supported method names

# Use the SUNDIALS default method for the chosen type (fixed or adaptive step sizes)
integration.sundials.type = ERK
integration.sundials.type = EX-MRI # all the types listed above work with respective default methods

# Use forward Euler (fixed step sizes only)
# The following combination of type and method works as well
# integration.sundials.type = ERK
# integration.sundials.method = ARKODE_FORWARD_EULER_1_1
#integration.sundials.method = ARKODE_MRI_GARK_FORWARD_EULER #ARKODE_FORWARD_EULER_1_1

# Use backward Euler (fixed step sizes only)
# integration.sundials.type = DIRK
# integration.sundials.method = ARKODE_BACKWARD_EULER_1_1
4 changes: 0 additions & 4 deletions ExampleCodes/SUNDIALS/Reaction-Diffusion/Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,6 @@ void main_main ()
integrator.set_time_step(dt);
}

// This sets the ratio of slow timestep size to fast timestep size as an integer,
// or equivalently, the number of fast timesteps per slow timestep.
integrator.set_slow_fast_timestep_ratio(10);

for (int step = 1; step <= nsteps; ++step)
{
// Set time to evolve to
Expand Down

0 comments on commit a906cb8

Please sign in to comment.