diff --git a/src/finiteVolume/fvMesh/fvMesh.C b/src/finiteVolume/fvMesh/fvMesh.C index 6ce30fd57f..a904f8092b 100644 --- a/src/finiteVolume/fvMesh/fvMesh.C +++ b/src/finiteVolume/fvMesh/fvMesh.C @@ -199,7 +199,7 @@ void Foam::fvMesh::storeOldVol(const scalarField& V) *this, IOobject::NO_READ, IOobject::NO_WRITE, - true + false ), *this, dimVolume @@ -281,8 +281,8 @@ Foam::fvMesh::fvMesh(const IOobject& io) time().timeName(), *this, IOobject::MUST_READ, - IOobject::AUTO_WRITE, - true + IOobject::NO_WRITE, + false ), *this ); @@ -869,6 +869,11 @@ bool Foam::fvMesh::writeObject // solver smooth restart using second order time schemes. //ok = phiPtr_->oldTime().write(); } + if (V0Ptr_ && V0Ptr_->writeOpt() == IOobject::AUTO_WRITE) + { + // For second order restarts we need to write V0 + ok = V0Ptr_->write(); + } return ok && polyMesh::writeObject(fmt, ver, cmp); }