Skip to content

Commit 806b8fd

Browse files
committed
set do_record to false for every thread
1 parent 64001fc commit 806b8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmpdata++/output/detail/output_common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ namespace libmpdataxx
8080
int next_idx = std::floor(next_time / outfreq);
8181
int curr_idx = std::floor(this->time / outfreq);
8282

83+
do_record = false;
8384
if (next_idx > curr_idx)
8485
{
8586
do_record = true;
@@ -114,7 +115,6 @@ namespace libmpdataxx
114115
if (this->var_dt && do_record)
115116
{
116117
record_all();
117-
do_record = false;
118118
}
119119
else if (!this->var_dt)
120120
{

0 commit comments

Comments
 (0)