STYLE: readOnProc/writeOnProc instead of 'valid' for IO

This commit is contained in:
Mark Olesen
2023-03-14 17:39:28 +01:00
parent 188e61af16
commit 475ed5cc32
94 changed files with 415 additions and 383 deletions

View File

@ -1048,13 +1048,13 @@ void Foam::fvMesh::updateMesh(const mapPolyMesh& mpm)
bool Foam::fvMesh::writeObject
(
IOstreamOption streamOpt,
const bool valid
const bool writeOnProc
) const
{
bool ok = true;
if (phiPtr_)
{
ok = phiPtr_->write(valid);
ok = phiPtr_->write(writeOnProc);
// NOTE: The old old time mesh phi might be necessary for certain
// solver smooth restart using second order time schemes.
//ok = phiPtr_->oldTime().write();
@ -1062,16 +1062,16 @@ bool Foam::fvMesh::writeObject
if (V0Ptr_ && V0Ptr_->writeOpt() == IOobject::AUTO_WRITE)
{
// For second order restarts we need to write V0
ok = V0Ptr_->write(valid);
ok = V0Ptr_->write(writeOnProc);
}
return ok && polyMesh::writeObject(streamOpt, valid);
return ok && polyMesh::writeObject(streamOpt, writeOnProc);
}
bool Foam::fvMesh::write(const bool valid) const
bool Foam::fvMesh::write(const bool writeOnProc) const
{
return polyMesh::write(valid);
return polyMesh::write(writeOnProc);
}

View File

@ -508,11 +508,11 @@ public:
virtual bool writeObject
(
IOstreamOption streamOpt,
const bool valid
const bool writeOnProc
) const;
//- Write mesh using IO settings from time
virtual bool write(const bool valid = true) const;
virtual bool write(const bool writeOnProc = true) const;
// Member Operators