Skip to content

Commit

Permalink
Remove some hard checks in check_mvmc for 3D (#2864)
Browse files Browse the repository at this point in the history
Removing some hard checks in 3D coarsening logic as it appears that those are not necessarily bad states, and a soft failure to coarsen should suffice.
  • Loading branch information
drangara authored Jul 1, 2022
1 parent 19c7068 commit 2b42fb5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Src/EB/AMReX_EB2_3D_C.H
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,8 @@ int check_mvmc (int i, int j, int k, Array4<Real const> const& fine)
nxm = 0;
} else if (n == 2) {
nxm = 1;
} else if (n == 4) {
ierr = 1;
} else {
ierr = 1;
amrex::Abort("amrex::check_mvmc: how did this happen? wrong number of cuts on xlo-face");
}

int nxp = -1;
Expand All @@ -213,11 +210,8 @@ int check_mvmc (int i, int j, int k, Array4<Real const> const& fine)
nxp = 0;
} else if (n == 2) {
nxp = 1;
} else if (n == 4) {
ierr = 1;
} else {
ierr = 1;
amrex::Abort("amrex::check_mvmc: how did this happen? wrong number of cuts on xhi-face");
}

// y-faces
Expand All @@ -227,11 +221,8 @@ int check_mvmc (int i, int j, int k, Array4<Real const> const& fine)
nym = 0;
} else if (n == 2) {
nym = 1;
} else if (n == 4) {
ierr = 1;
} else {
ierr = 1;
amrex::Abort("amrex::check_mvmc: how did this happen? wrong number of cuts on ylo-face");
}

int nyp = -1;
Expand All @@ -240,11 +231,8 @@ int check_mvmc (int i, int j, int k, Array4<Real const> const& fine)
nyp = 0;
} else if (n == 2) {
nyp = 1;
} else if (n == 4) {
ierr = 1;
} else {
ierr = 1;
amrex::Abort("amrex::check_mvmc: how did this happen? wrong number of cuts on yhi-face");
}

// z-faces
Expand All @@ -254,11 +242,8 @@ int check_mvmc (int i, int j, int k, Array4<Real const> const& fine)
nzm = 0;
} else if (n == 2) {
nzm = 1;
} else if (n == 4) {
ierr = 1;
} else {
ierr = 1;
amrex::Abort("amrex::check_mvmc: how did this happen? wrong number of cuts on zlo-face");
}

int nzp = -1;
Expand All @@ -267,11 +252,8 @@ int check_mvmc (int i, int j, int k, Array4<Real const> const& fine)
nzp = 0;
} else if (n == 2) {
nzp = 1;
} else if (n == 4) {
ierr = 1;
} else {
ierr = 1;
amrex::Abort("amrex::check_mvmc: how did this happen? wrong number of cuts on zhi-face");
}

if (nxm == 1 && nym == 1 && nzm == 1 && nxp == 1 && nyp == 1 && nzp == 1) {
Expand Down

0 comments on commit 2b42fb5

Please sign in to comment.