mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: nearWallFields: only write when explicitly told so.
This commit is contained in:
@ -25,9 +25,6 @@ License
|
||||
|
||||
#include "nearWallFields.H"
|
||||
#include "wordReList.H"
|
||||
//#include "volFields.H"
|
||||
//#include "selfContainedDirectMappedFixedValueFvPatchFields.H"
|
||||
//#include "interpolationCellPoint.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
@ -152,6 +149,7 @@ void Foam::nearWallFields::write()
|
||||
Info<< "Writing sampled fields to " << obr_.time().timeName()
|
||||
<< endl;
|
||||
|
||||
// Write fields
|
||||
forAll(vsf_, i)
|
||||
{
|
||||
vsf_[i].write();
|
||||
|
||||
@ -60,6 +60,7 @@ void Foam::nearWallFields::createFields
|
||||
|
||||
IOobject io(fld);
|
||||
io.readOpt() = IOobject::NO_READ;
|
||||
io.writeOpt() = IOobject::NO_WRITE;
|
||||
io.rename(sampleFldName);
|
||||
|
||||
sflds.set(sz, new vfType(io, fld));
|
||||
|
||||
Reference in New Issue
Block a user