Skip to content

Commit

Permalink
Z4co: relax the requirement of ghost points
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Sep 10, 2024
1 parent 6de2996 commit 4adf73d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Z4co/src/constraint.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ extern "C" void Z4co_Constraints(CCTK_ARGUMENTS) {
DECLARE_CCTK_PARAMETERS;

for (int d = 0; d < 3; ++d)
if (cctk_nghostzones[d] < deriv_order / 2 + 1)
CCTK_VERROR("Need at least %d ghost zones", deriv_order / 2 + 1);
if (cctk_nghostzones[d] < deriv_order / 2)
CCTK_VERROR("Need at least %d ghost zones", deriv_order / 2);

//

Expand Down
4 changes: 2 additions & 2 deletions Z4co/src/rhs.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ extern "C" void Z4co_RHS(CCTK_ARGUMENTS) {
DECLARE_CCTK_PARAMETERS;

for (int d = 0; d < 3; ++d)
if (cctk_nghostzones[d] < deriv_order / 2 + 1)
CCTK_VERROR("Need at least %d ghost zones", deriv_order / 2 + 1);
if (cctk_nghostzones[d] < deriv_order / 2)
CCTK_VERROR("Need at least %d ghost zones", deriv_order / 2);

const array<int, dim> indextype = {0, 0, 0};
const array<int, dim> nghostzones = {cctk_nghostzones[0], cctk_nghostzones[1],
Expand Down

0 comments on commit 4adf73d

Please sign in to comment.