Skip to content

Commit

Permalink
add corners in the ghost face counting
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcogarofalo committed Dec 5, 2023
1 parent 4903592 commit 34bf89e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/host_reference/TMCloverForce_reference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ void TMCloverForce_reference(void *h_mom, void **h_x, void **h_x0, double *coef
if (i == j)
continue;
else if (j == 0)
ghostFace[i] *= qParam.x[j] * 2;
ghostFace[i] *= qParam.x[j] * 2 + 2 * R[i];
else
ghostFace[i] *= qParam.x[j];
ghostFace[i] *= qParam.x[j] + 2 * R[i];
}
}
ghost_size += 2 * R[i] * ghostFace[i];
Expand Down

0 comments on commit 34bf89e

Please sign in to comment.