@@ -332,23 +332,28 @@ void Statistics::executeImpl(message::Message msg) {
332
332
// TODO: Reorganize the code to avoid this second search
333
333
// which is not efficient
334
334
stat = fieldStats_.find (key);
335
+ if (opt_.solver_send_initial_condition ()) {
336
+ return ;
337
+ }
335
338
}
336
-
337
- // Exit if the current time is the same as the current point in the
338
- // window and the solver does not send the initial condition.
339
- // This can happen when the solver is sending the initial condition
340
- // and and the same point is already present in the restart
341
- auto & ts = *(stat->second );
342
- if ( cfg.curr () == ts.cwin ().currPoint () && opt_.solver_send_initial_condition () ) {
343
- return ;
339
+ else {
340
+ // Exit if the current time is the same as the current point in the
341
+ // window and the solver does not send the initial condition.
342
+ // This can happen when the solver is sending the initial condition
343
+ // and and the same point is already present in the restart
344
+ auto & ts = *(stat->second );
345
+
346
+ if (cfg.curr () == ts.cwin ().currPoint () && opt_.solver_send_initial_condition ()) {
347
+ return ;
348
+ }
344
349
}
345
-
346
350
// std::ostringstream os;
347
351
// os << "Current time vs current point in the window :: "
348
352
// << cfg.curr() << " " << ts.cwin().currPoint()
349
353
// << std::endl;
350
354
// std::cout << os.str() << std::endl;
351
355
356
+ auto & ts = *(stat->second );
352
357
// In any case if the current time is greater than the current point in the window, we have a problem
353
358
if ( cfg.curr () <= ts.cwin ().currPoint () ) {
354
359
std::ostringstream os;
0 commit comments