diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C index 313cd0a0c0..dcb2c6cca5 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C @@ -29,7 +29,6 @@ Description #include "autoSnapDriver.H" #include "motionSmoother.H" #include "polyTopoChange.H" -#include "OFstream.H" #include "syncTools.H" #include "fvMesh.H" #include "Time.H" @@ -1006,7 +1005,11 @@ void Foam::autoSnapDriver::smoothDisplacement // but this will also delete all pointMesh but not pointFields which // gives an illegal situation. - mesh.write(); + meshRefiner_.write + ( + debug, + mesh.time().path()/meshRefiner_.timeName() + ); Pout<< "Writing displacement field ..." << endl; disp.write();