Skip to content

Commit 64001fc

Browse files
committed
rearrange and add one barrier - hopefully fixes issues with hdf5 output with var_dt
1 parent 1a2954e commit 64001fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmpdata++/output/detail/output_common.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ namespace libmpdataxx
5151
{
5252
for (const auto &v : outvars)
5353
intrp_vars[v.first](this->ijk) = this->mem->advectee(v.first)(this->ijk);
54+
this->mem->barrier();
5455
}
5556

56-
this->mem->barrier();
57-
5857
if (this->rank == 0)
5958
{
6059
record_time = this->time;
@@ -105,6 +104,7 @@ namespace libmpdataxx
105104
intrp_vars[v.first](this->ijk) += (record_time - prev_time) / (this->time - prev_time) *
106105
this->mem->advectee(v.first)(this->ijk);
107106
}
107+
this->mem->barrier();
108108
}
109109

110110
if (this->rank == 0)

0 commit comments

Comments
 (0)