BUG: incorrect EnSight lagrangian fields in parallel (fixes #1629)

This commit is contained in:
Mark Olesen
2020-03-12 11:09:23 +01:00
parent 54f23b9577
commit ff16d27f63

View File

@ -76,7 +76,7 @@ bool Foam::ensightOutput::writeCloudField
IPstream fromSlave(comm, slave); IPstream fromSlave(comm, slave);
Field<Type> recv(fromSlave); Field<Type> recv(fromSlave);
for (Type val : field) // <-- working on a copy for (Type val : recv) // <-- working on a copy
{ {
if (mag(val) < 1e-90) // approximately root(ROOTVSMALL) if (mag(val) < 1e-90) // approximately root(ROOTVSMALL)
{ {