Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For subch_planar: increase MAX_NPTS, make SDC time integration default #2873

Merged
merged 3 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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