File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ namespace PunctureTracker {
17
17
18
18
static PunctureContainer *g_punctures = nullptr ;
19
19
20
+ static double previous_time = 0.0 ;
21
+
20
22
const int max_num_tracked = 10 ;
21
23
22
24
extern " C" void PunctureTracker_Init (CCTK_ARGUMENTS) {
@@ -101,6 +103,13 @@ extern "C" void PunctureTracker_Track(CCTK_ARGUMENTS) {
101
103
DECLARE_CCTK_ARGUMENTS_PunctureTracker_Track;
102
104
DECLARE_CCTK_PARAMETERS;
103
105
106
+ // we can remove this segment when global mode works
107
+ if (cctk_time <= previous_time) {
108
+ return ;
109
+ }
110
+ #pragma omp master
111
+ { previous_time = cctk_time; }
112
+
104
113
// Do not track while setting up initial data; time interpolation may fail
105
114
if (cctk_iteration == 0 ) {
106
115
return ;
You can’t perform that action at this time.
0 commit comments