Skip to content

Commit 620952f

Browse files
committed
PunctureTracker: checkpoint time
1 parent fc2d2fe commit 620952f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PunctureTracker/src/puncture_tracker.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ extern "C" void PunctureTracker_Track(CCTK_ARGUMENTS) {
117117
g_punctures->getLocation();
118118
const std::array<std::vector<CCTK_REAL>, Loop::dim> &velocity =
119119
g_punctures->getVelocity();
120+
const std::vector<CCTK_REAL> &time = g_punctures->getTime();
120121
const std::vector<CCTK_REAL> &previousTime = g_punctures->getPreviousTime();
121122

122123
if (verbose) {
@@ -166,9 +167,11 @@ extern "C" void PunctureTracker_Track(CCTK_ARGUMENTS) {
166167

167168
// Write to pt_loc_foo and pt_vel_foo
168169
for (int i = 0; i < nPunctures; ++i) {
170+
pt_loc_t[i] = time[i];
169171
pt_loc_x[i] = location[0][i];
170172
pt_loc_y[i] = location[1][i];
171173
pt_loc_z[i] = location[2][i];
174+
pt_vel_t[i] = time[i];
172175
pt_vel_x[i] = velocity[0][i];
173176
pt_vel_y[i] = velocity[1][i];
174177
pt_vel_z[i] = velocity[2][i];

0 commit comments

Comments
 (0)