Skip to content

Commit e8d3eda

Browse files
committed
PunctureTracker: assert nPunctures <= 3 when write to BoxInBox
1 parent ae7a80d commit e8d3eda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PunctureTracker/src/puncture_tracker.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ extern "C" void PunctureTracker_Setup(CCTK_ARGUMENTS) {
8181

8282
// enabled if refinement regions should follow the punctures
8383
if (track_boxes) {
84+
assert(nPunctures <= 3); // BoxInBox currently hardcodes position[3]
8485
const std::array<std::vector<CCTK_REAL>, Loop::dim> &location =
8586
g_punctures->getLocation();
8687
for (int n = 0; n < nPunctures; ++n) {

0 commit comments

Comments
 (0)