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

Bugfix/filling constraint bcs #7

Merged
merged 2 commits into from
Dec 8, 2024
Merged
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
16 changes: 8 additions & 8 deletions Source/Operator/SetBCs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ void ParseBC(FArrayBox &a_state, const Box &a_valid,

// this will populate the multigrid boundaries according to the BCs
// in particular it will fill cells for Aij, and updated K
solver_boundaries.fill_constraint_box(Side::Lo, a_state,
Interval(0, NUM_CONSTRAINT_VARS));
solver_boundaries.fill_constraint_box(Side::Hi, a_state,
Interval(0, NUM_CONSTRAINT_VARS));
solver_boundaries.fill_constraint_box(
Side::Lo, a_state, Interval(0, NUM_CONSTRAINT_VARS - 1));
solver_boundaries.fill_constraint_box(
Side::Hi, a_state, Interval(0, NUM_CONSTRAINT_VARS - 1));
// Do it twice to catch corners... must be a better way
// but for now this works
solver_boundaries.fill_constraint_box(Side::Lo, a_state,
Interval(0, NUM_CONSTRAINT_VARS));
solver_boundaries.fill_constraint_box(Side::Hi, a_state,
Interval(0, NUM_CONSTRAINT_VARS));
solver_boundaries.fill_constraint_box(
Side::Lo, a_state, Interval(0, NUM_CONSTRAINT_VARS - 1));
solver_boundaries.fill_constraint_box(
Side::Hi, a_state, Interval(0, NUM_CONSTRAINT_VARS - 1));
}
}
Loading