ENH: nearWallFields: only write when explicitly told so.

This commit is contained in:
mattijs
2011-09-13 08:51:51 +01:00
parent f496401ee5
commit 2d53acd410
2 changed files with 2 additions and 3 deletions

View File

@ -25,9 +25,6 @@ License
#include "nearWallFields.H" #include "nearWallFields.H"
#include "wordReList.H" #include "wordReList.H"
//#include "volFields.H"
//#include "selfContainedDirectMappedFixedValueFvPatchFields.H"
//#include "interpolationCellPoint.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -152,6 +149,7 @@ void Foam::nearWallFields::write()
Info<< "Writing sampled fields to " << obr_.time().timeName() Info<< "Writing sampled fields to " << obr_.time().timeName()
<< endl; << endl;
// Write fields
forAll(vsf_, i) forAll(vsf_, i)
{ {
vsf_[i].write(); vsf_[i].write();

View File

@ -60,6 +60,7 @@ void Foam::nearWallFields::createFields
IOobject io(fld); IOobject io(fld);
io.readOpt() = IOobject::NO_READ; io.readOpt() = IOobject::NO_READ;
io.writeOpt() = IOobject::NO_WRITE;
io.rename(sampleFldName); io.rename(sampleFldName);
sflds.set(sz, new vfType(io, fld)); sflds.set(sz, new vfType(io, fld));