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

fix the solvability enforcement when we have multiple grids on a face #147

Merged
merged 1 commit into from
Aug 29, 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
18 changes: 16 additions & 2 deletions Utils/hydro_enforce_inout_solvability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,22 @@ void set_inout_masks(

// include boundary corners if specified
if (corners) {
box.grow((dir+1)%AMREX_SPACEDIM, 1);
box.grow((dir+2)%AMREX_SPACEDIM, 1);
int tang_dir_1 = (dir+1)%AMREX_SPACEDIM;
if (box.smallEnd(tang_dir_1) == domain.smallEnd(tang_dir_1)) {
box.growLo(tang_dir_1,1);
}
if (box.bigEnd(tang_dir_1) == domain.bigEnd(tang_dir_1)) {
box.growHi(tang_dir_1,1);
}
#if (AMREX_SPACEDIM == 3)
int tang_dir_2 = (dir+2)%AMREX_SPACEDIM;
if (box.smallEnd(tang_dir_2) == domain.smallEnd(tang_dir_2)) {
box.growLo(tang_dir_2,1);
}
if (box.bigEnd(tang_dir_2) == domain.bigEnd(tang_dir_2)) {
box.growHi(tang_dir_2,1);
}
#endif
}

// Enter further only if the box bndry is at the domain bndry
Expand Down
Loading