From 2d53acd410e24090399d9ba03b1016dcbb90409b Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 13 Sep 2011 08:51:51 +0100 Subject: [PATCH] ENH: nearWallFields: only write when explicitly told so. --- .../functionObjects/field/nearWallFields/nearWallFields.C | 4 +--- .../field/nearWallFields/nearWallFieldsTemplates.C | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C index 383dd0be16..36a5c2cfb0 100644 --- a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C +++ b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C @@ -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(); diff --git a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C index 8f237edc12..0436d2ddbb 100644 --- a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C +++ b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFieldsTemplates.C @@ -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));