Skip to content

Commit

Permalink
For subch_planar: increase MAX_NPTS, make SDC time integration default (
Browse files Browse the repository at this point in the history
  • Loading branch information
brady-ryan authored Jun 18, 2024
1 parent 7cf5db7 commit 627cc1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Exec/science/subch_planar/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ USE_OMP = FALSE
USE_GRAV = TRUE
USE_REACT = TRUE

USE_SHOCK_VAR = TRUE
USE_SHOCK_VAR = TRUE

MAX_NPTS_MODEL = 32678

USE_MODEL_PARSER = TRUE

Expand Down
1 change: 1 addition & 0 deletions Exec/science/subch_planar/inputs_2d
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ castro.sponge_timescale = 1.0e-3
castro.sum_interval = 1 # timesteps between computing mass
castro.v = 1 # verbosity in Castro.cpp
amr.v = 1 # verbosity in Amr.cpp
castro.time_integration_method = 3 # uses SDC by default

# REFINEMENT / REGRIDDING
amr.max_level = 0 # maximum level number allowed
Expand Down
2 changes: 1 addition & 1 deletion Exec/science/subch_planar/problem_initialize.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void problem_initialize ()

const Real* problo = dgeom.ProbLo();
const Real* probhi = dgeom.ProbHi();

problem::ihe4 = network_spec_index("helium-4");

if (problem::ihe4 < 0) {
Expand Down
2 changes: 1 addition & 1 deletion Exec/science/subch_planar/problem_initialize_state_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void problem_initialize_state_data (int i, int j, int k,
for (int n = 0; n < NumSpec; n++) {
state(i,j,k,UFS+n) = state(i,j,k,URHO) * state(i,j,k,UFS+n);
}

// Initial velocities = 0
state(i,j,k,UMX) = 0.0_rt;
state(i,j,k,UMY) = 0.0_rt;
Expand Down

0 comments on commit 627cc1e

Please sign in to comment.