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

flame_wave: error out if atm_delta is too small #2782

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions Exec/science/flame_wave/initial_model.H
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ generate_initial_model(const int npts_model, const Real xmin, const Real xmax,
for (int i = index_base+1; i < npts_model; i++) {

if ((model::profile(model_num).r(i) > xmin + model_params.H_star + 3.0_rt * model_params.atm_delta) && !flipped) {
if (i == index_base + 1) {
amrex::Error("atm_delta is too small for the grid spacing (at least one transition zone is required)");
}
isentropic = true;
flipped = true;

Expand Down
Loading