diff --git a/src/lagrangian/intermediate/conversion/ensight/ensightOutputCloudTemplates.C b/src/lagrangian/intermediate/conversion/ensight/ensightOutputCloudTemplates.C index 80c23c414c7e90a01db4b3478df7e88a951db131..497484178e9b88923850b2f8584ee7b243516910 100644 --- a/src/lagrangian/intermediate/conversion/ensight/ensightOutputCloudTemplates.C +++ b/src/lagrangian/intermediate/conversion/ensight/ensightOutputCloudTemplates.C @@ -76,7 +76,7 @@ bool Foam::ensightOutput::writeCloudField IPstream fromSlave(comm, slave); 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) {