diff --git a/src/functionObjects/field/DESModelRegions/DESModelRegions.C b/src/functionObjects/field/DESModelRegions/DESModelRegions.C index 87a3e1fb58..360af5136c 100644 --- a/src/functionObjects/field/DESModelRegions/DESModelRegions.C +++ b/src/functionObjects/field/DESModelRegions/DESModelRegions.C @@ -110,6 +110,7 @@ Foam::functionObjects::DESModelRegions::~DESModelRegions() bool Foam::functionObjects::DESModelRegions::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); writeFile::read(dict); dict.readIfPresent("resultName", resultName_); diff --git a/src/functionObjects/field/PecletNo/PecletNo.C b/src/functionObjects/field/PecletNo/PecletNo.C index 1dd4c91764..da4018b54b 100644 --- a/src/functionObjects/field/PecletNo/PecletNo.C +++ b/src/functionObjects/field/PecletNo/PecletNo.C @@ -144,6 +144,7 @@ Foam::functionObjects::PecletNo::PecletNo rhoName_("rho") { setResultName("Pe", "phi"); + read(dict); } diff --git a/src/functionObjects/field/XiReactionRate/XiReactionRate.C b/src/functionObjects/field/XiReactionRate/XiReactionRate.C index 2f6febfb54..ff67a59f68 100644 --- a/src/functionObjects/field/XiReactionRate/XiReactionRate.C +++ b/src/functionObjects/field/XiReactionRate/XiReactionRate.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -63,6 +63,12 @@ Foam::functionObjects::XiReactionRate::~XiReactionRate() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +bool Foam::functionObjects::XiReactionRate::read(const dictionary& dict) +{ + return fvMeshFunctionObject::read(dict); +} + + bool Foam::functionObjects::XiReactionRate::execute() { return true; diff --git a/src/functionObjects/field/XiReactionRate/XiReactionRate.H b/src/functionObjects/field/XiReactionRate/XiReactionRate.H index e699b1090e..0d25ed3be7 100644 --- a/src/functionObjects/field/XiReactionRate/XiReactionRate.H +++ b/src/functionObjects/field/XiReactionRate/XiReactionRate.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -107,10 +107,13 @@ public: // Member Functions + //- Read the reaction rate data + virtual bool read(const dictionary&); + //- Do nothing virtual bool execute(); - //- Write the cell-centre fields + //- Write the reaction rate fields virtual bool write(); }; diff --git a/src/functionObjects/field/components/components.C b/src/functionObjects/field/components/components.C index 7ed53909f1..ef45328f32 100644 --- a/src/functionObjects/field/components/components.C +++ b/src/functionObjects/field/components/components.C @@ -63,9 +63,7 @@ Foam::functionObjects::components::components ) : fieldExpression(name, runTime, dict) -{ - read(dict); -} +{} // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // diff --git a/src/functionObjects/field/ddt2/ddt2.C b/src/functionObjects/field/ddt2/ddt2.C index c0e0ceeb76..49b04f4239 100644 --- a/src/functionObjects/field/ddt2/ddt2.C +++ b/src/functionObjects/field/ddt2/ddt2.C @@ -196,6 +196,8 @@ Foam::functionObjects::ddt2::~ddt2() bool Foam::functionObjects::ddt2::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + if (word(mesh_.ddtScheme("default")) == "steadyState") { WarningInFunction diff --git a/src/functionObjects/field/externalCoupled/externalCoupled.C b/src/functionObjects/field/externalCoupled/externalCoupled.C index c4114c0745..727aa595f5 100644 --- a/src/functionObjects/field/externalCoupled/externalCoupled.C +++ b/src/functionObjects/field/externalCoupled/externalCoupled.C @@ -854,6 +854,8 @@ bool Foam::functionObjects::externalCoupled::end() bool Foam::functionObjects::externalCoupled::read(const dictionary& dict) { + functionObject::read(dict); + dict.readIfPresent("enabled", enabled_); if (!enabled_) diff --git a/src/functionObjects/field/fluxSummary/fluxSummary.C b/src/functionObjects/field/fluxSummary/fluxSummary.C index 33facd5d13..deb45d77f1 100644 --- a/src/functionObjects/field/fluxSummary/fluxSummary.C +++ b/src/functionObjects/field/fluxSummary/fluxSummary.C @@ -619,6 +619,7 @@ Foam::functionObjects::fluxSummary::~fluxSummary() bool Foam::functionObjects::fluxSummary::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); writeFile::read(dict); mode_ = modeTypeNames_.read(dict.lookup("mode")); diff --git a/src/functionObjects/field/grad/grad.C b/src/functionObjects/field/grad/grad.C index b265ec80b7..4a689310ee 100644 --- a/src/functionObjects/field/grad/grad.C +++ b/src/functionObjects/field/grad/grad.C @@ -61,9 +61,7 @@ Foam::functionObjects::grad::grad ) : fieldExpression(name, runTime, dict) -{ - read(dict); -} +{} // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // diff --git a/src/functionObjects/field/histogram/histogram.C b/src/functionObjects/field/histogram/histogram.C index 68c5f46387..63e2abcf0a 100644 --- a/src/functionObjects/field/histogram/histogram.C +++ b/src/functionObjects/field/histogram/histogram.C @@ -92,6 +92,8 @@ Foam::functionObjects::histogram::~histogram() bool Foam::functionObjects::histogram::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + dict.lookup("field") >> fieldName_; dict.lookup("max") >> max_; min_ = dict.lookupOrDefault("min", 0); diff --git a/src/functionObjects/field/mag/mag.C b/src/functionObjects/field/mag/mag.C index a5dfca1d41..42e970a939 100644 --- a/src/functionObjects/field/mag/mag.C +++ b/src/functionObjects/field/mag/mag.C @@ -64,9 +64,7 @@ Foam::functionObjects::mag::mag ) : fieldExpression(name, runTime, dict) -{ - read(dict); -} +{} // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // diff --git a/src/functionObjects/field/magSqr/magSqr.C b/src/functionObjects/field/magSqr/magSqr.C index 7f45431e82..82b0822d9f 100644 --- a/src/functionObjects/field/magSqr/magSqr.C +++ b/src/functionObjects/field/magSqr/magSqr.C @@ -64,9 +64,7 @@ Foam::functionObjects::magSqr::magSqr ) : fieldExpression(name, runTime, dict) -{ - read(dict); -} +{} // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // diff --git a/src/functionObjects/field/mapFields/mapFields.C b/src/functionObjects/field/mapFields/mapFields.C index 1363692d98..3f3ff47ab5 100644 --- a/src/functionObjects/field/mapFields/mapFields.C +++ b/src/functionObjects/field/mapFields/mapFields.C @@ -166,6 +166,8 @@ Foam::functionObjects::mapFields::~mapFields() bool Foam::functionObjects::mapFields::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + dict.lookup("fields") >> fieldNames_; createInterpolation(dict); return true; diff --git a/src/functionObjects/field/pressure/pressure.C b/src/functionObjects/field/pressure/pressure.C index 349e7cca8c..7f1f12c33d 100644 --- a/src/functionObjects/field/pressure/pressure.C +++ b/src/functionObjects/field/pressure/pressure.C @@ -230,6 +230,8 @@ Foam::functionObjects::pressure::~pressure() bool Foam::functionObjects::pressure::read(const dictionary& dict) { + fieldExpression::read(dict); + dict.readIfPresent("U", UName_); dict.readIfPresent("rho", rhoName_); diff --git a/src/functionObjects/field/reactionSensitivityAnalysis/reactionsSensitivityAnalysis.C b/src/functionObjects/field/reactionSensitivityAnalysis/reactionsSensitivityAnalysis.C index f60eb7cdc1..8664497061 100644 --- a/src/functionObjects/field/reactionSensitivityAnalysis/reactionsSensitivityAnalysis.C +++ b/src/functionObjects/field/reactionSensitivityAnalysis/reactionsSensitivityAnalysis.C @@ -267,6 +267,7 @@ bool Foam::functionObjects::reactionsSensitivityAnalysis::read const dictionary& dict ) { + fvMeshFunctionObject::read(dict); writeFile::read(dict); return true; } diff --git a/src/functionObjects/field/regionSizeDistribution/regionSizeDistribution.C b/src/functionObjects/field/regionSizeDistribution/regionSizeDistribution.C index 2a823a2111..fccc1b9cd1 100644 --- a/src/functionObjects/field/regionSizeDistribution/regionSizeDistribution.C +++ b/src/functionObjects/field/regionSizeDistribution/regionSizeDistribution.C @@ -353,6 +353,8 @@ Foam::functionObjects::regionSizeDistribution::~regionSizeDistribution() bool Foam::functionObjects::regionSizeDistribution::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + dict.lookup("field") >> alphaName_; dict.lookup("patches") >> patchNames_; dict.lookup("threshold") >> threshold_; diff --git a/src/functionObjects/field/streamLine/streamLineBase.C b/src/functionObjects/field/streamLine/streamLineBase.C index c6d3330591..0c1616d16d 100644 --- a/src/functionObjects/field/streamLine/streamLineBase.C +++ b/src/functionObjects/field/streamLine/streamLineBase.C @@ -507,6 +507,8 @@ Foam::functionObjects::streamLineBase::~streamLineBase() bool Foam::functionObjects::streamLineBase::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + Info<< type() << " " << name() << ":" << nl; dict.lookup("fields") >> fields_; diff --git a/src/functionObjects/field/surfaceInterpolate/surfaceInterpolate.C b/src/functionObjects/field/surfaceInterpolate/surfaceInterpolate.C index bd9e30e586..d81a37ef66 100644 --- a/src/functionObjects/field/surfaceInterpolate/surfaceInterpolate.C +++ b/src/functionObjects/field/surfaceInterpolate/surfaceInterpolate.C @@ -74,6 +74,8 @@ bool Foam::functionObjects::surfaceInterpolate::read const dictionary& dict ) { + fvMeshFunctionObject::read(dict); + dict.lookup("fields") >> fieldSet_; return true; diff --git a/src/functionObjects/field/turbulenceFields/turbulenceFields.C b/src/functionObjects/field/turbulenceFields/turbulenceFields.C index 19ac082ee0..29c1facb0e 100644 --- a/src/functionObjects/field/turbulenceFields/turbulenceFields.C +++ b/src/functionObjects/field/turbulenceFields/turbulenceFields.C @@ -146,6 +146,8 @@ Foam::functionObjects::turbulenceFields::~turbulenceFields() bool Foam::functionObjects::turbulenceFields::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + if (dict.found("field")) { fieldSet_.insert(word(dict.lookup("field"))); diff --git a/src/functionObjects/field/valueAverage/valueAverage.C b/src/functionObjects/field/valueAverage/valueAverage.C index 4358cc2384..a5a7100aed 100644 --- a/src/functionObjects/field/valueAverage/valueAverage.C +++ b/src/functionObjects/field/valueAverage/valueAverage.C @@ -106,6 +106,7 @@ Foam::functionObjects::valueAverage::~valueAverage() bool Foam::functionObjects::valueAverage::read(const dictionary& dict) { + regionFunctionObject::read(dict); writeFile::read(dict); dict.lookup("functionObjectName") >> functionObjectName_; diff --git a/src/functionObjects/field/writeCellCentres/writeCellCentres.C b/src/functionObjects/field/writeCellCentres/writeCellCentres.C index d1f1d65fd0..fb52f26580 100644 --- a/src/functionObjects/field/writeCellCentres/writeCellCentres.C +++ b/src/functionObjects/field/writeCellCentres/writeCellCentres.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -62,6 +62,12 @@ Foam::functionObjects::writeCellCentres::~writeCellCentres() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +bool Foam::functionObjects::writeCellCentres::read(const dictionary& dict) +{ + return fvMeshFunctionObject::read(dict); +} + + bool Foam::functionObjects::writeCellCentres::execute() { return true; diff --git a/src/functionObjects/field/writeCellCentres/writeCellCentres.H b/src/functionObjects/field/writeCellCentres/writeCellCentres.H index c6c050e6cd..42ee31f1a4 100644 --- a/src/functionObjects/field/writeCellCentres/writeCellCentres.H +++ b/src/functionObjects/field/writeCellCentres/writeCellCentres.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -107,6 +107,9 @@ public: // Member Functions + //- Read the cell-centre rate data + virtual bool read(const dictionary&); + //- Do nothing virtual bool execute(); diff --git a/src/functionObjects/field/writeCellVolumes/writeCellVolumes.C b/src/functionObjects/field/writeCellVolumes/writeCellVolumes.C index 05bd64530d..3ff4de770f 100644 --- a/src/functionObjects/field/writeCellVolumes/writeCellVolumes.C +++ b/src/functionObjects/field/writeCellVolumes/writeCellVolumes.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -62,6 +62,12 @@ Foam::functionObjects::writeCellVolumes::~writeCellVolumes() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // +bool Foam::functionObjects::writeCellVolumes::read(const dictionary& dict) +{ + return fvMeshFunctionObject::read(dict); +} + + bool Foam::functionObjects::writeCellVolumes::execute() { return true; diff --git a/src/functionObjects/field/writeCellVolumes/writeCellVolumes.H b/src/functionObjects/field/writeCellVolumes/writeCellVolumes.H index 63d56124bc..56bc4ffe22 100644 --- a/src/functionObjects/field/writeCellVolumes/writeCellVolumes.H +++ b/src/functionObjects/field/writeCellVolumes/writeCellVolumes.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -106,10 +106,13 @@ public: // Member Functions + //- Read the cell-volume data + virtual bool read(const dictionary&); + //- Do nothing virtual bool execute(); - //- Write the cell-centre fields + //- Write the cell-volume fields virtual bool write(); }; diff --git a/src/functionObjects/field/zeroGradient/zeroGradient.C b/src/functionObjects/field/zeroGradient/zeroGradient.C index 493e70d84f..2cdb88f72b 100644 --- a/src/functionObjects/field/zeroGradient/zeroGradient.C +++ b/src/functionObjects/field/zeroGradient/zeroGradient.C @@ -181,6 +181,8 @@ Foam::functionObjects::zeroGradient::~zeroGradient() bool Foam::functionObjects::zeroGradient::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + dict.lookup("fields") >> selectFields_; uniqWords(selectFields_); diff --git a/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C b/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C index 3fdf57ad8e..0b46ab48ff 100644 --- a/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C +++ b/src/functionObjects/graphics/runTimePostProcessing/runTimePostProcessing.C @@ -90,6 +90,8 @@ Foam::functionObjects::runTimePostProcessing::~runTimePostProcessing() bool Foam::functionObjects::runTimePostProcessing::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); + Info<< type() << " " << name() << ": reading post-processing data" << endl; scene_.read(dict); diff --git a/src/functionObjects/lagrangian/dsmcFields/dsmcFields.C b/src/functionObjects/lagrangian/dsmcFields/dsmcFields.C index 6c70937e4d..b2b97c6c1d 100644 --- a/src/functionObjects/lagrangian/dsmcFields/dsmcFields.C +++ b/src/functionObjects/lagrangian/dsmcFields/dsmcFields.C @@ -75,6 +75,7 @@ Foam::functionObjects::dsmcFields::~dsmcFields() bool Foam::functionObjects::dsmcFields::read(const dictionary& dict) { + fvMeshFunctionObject::read(dict); return true; } diff --git a/src/functionObjects/utilities/abort/abort.C b/src/functionObjects/utilities/abort/abort.C index 54853319ec..90a8db66b4 100644 --- a/src/functionObjects/utilities/abort/abort.C +++ b/src/functionObjects/utilities/abort/abort.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -114,6 +114,8 @@ Foam::functionObjects::abort::~abort() bool Foam::functionObjects::abort::read(const dictionary& dict) { + functionObject::read(dict); + if (dict.found("action")) { action_ = actionTypeNames_.read(dict.lookup("action")); diff --git a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C index 33d2227e65..b1a12b48cd 100644 --- a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C +++ b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C @@ -184,6 +184,8 @@ bool Foam::codedFunctionObject::end() bool Foam::codedFunctionObject::read(const dictionary& dict) { + functionObject::read(dict); + // Backward compatibility if (dict.found("redirectType")) { diff --git a/src/functionObjects/utilities/removeRegisteredObject/removeRegisteredObject.C b/src/functionObjects/utilities/removeRegisteredObject/removeRegisteredObject.C index 76b51e732b..e9776316f2 100644 --- a/src/functionObjects/utilities/removeRegisteredObject/removeRegisteredObject.C +++ b/src/functionObjects/utilities/removeRegisteredObject/removeRegisteredObject.C @@ -72,6 +72,8 @@ Foam::functionObjects::removeRegisteredObject::~removeRegisteredObject() bool Foam::functionObjects::removeRegisteredObject::read(const dictionary& dict) { + regionFunctionObject::read(dict); + dict.lookup("objects") >> objectNames_; return true; diff --git a/src/functionObjects/utilities/runTimeControl/runTimeControl.C b/src/functionObjects/utilities/runTimeControl/runTimeControl.C index d9d05d7352..e4c0d89095 100644 --- a/src/functionObjects/utilities/runTimeControl/runTimeControl.C +++ b/src/functionObjects/utilities/runTimeControl/runTimeControl.C @@ -77,6 +77,8 @@ bool Foam::functionObjects::runTimeControls::runTimeControl::read const dictionary& dict ) { + fvMeshFunctionObject::read(dict); + const dictionary& conditionsDict = dict.subDict("conditions"); const wordList conditionNames(conditionsDict.toc()); conditions_.setSize(conditionNames.size()); diff --git a/src/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C b/src/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C index 1f45543609..62f04d3640 100644 --- a/src/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C +++ b/src/functionObjects/utilities/setTimeStep/setTimeStepFunctionObject.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -92,6 +92,8 @@ bool Foam::functionObjects::setTimeStepFunctionObject::read const dictionary& dict ) { + functionObject::read(dict); + timeStepPtr_ = Function1::New("deltaT", dict); // Check that adjustTimeStep is active diff --git a/src/functionObjects/utilities/systemCall/systemCall.C b/src/functionObjects/utilities/systemCall/systemCall.C index a2a0bd5041..2076b3d3a4 100644 --- a/src/functionObjects/utilities/systemCall/systemCall.C +++ b/src/functionObjects/utilities/systemCall/systemCall.C @@ -74,6 +74,8 @@ Foam::functionObjects::systemCall::~systemCall() bool Foam::functionObjects::systemCall::read(const dictionary& dict) { + functionObject::read(dict); + dict.readIfPresent("executeCalls", executeCalls_); dict.readIfPresent("endCalls", endCalls_); dict.readIfPresent("writeCalls", writeCalls_); diff --git a/src/functionObjects/utilities/timeActivatedFileUpdate/timeActivatedFileUpdate.C b/src/functionObjects/utilities/timeActivatedFileUpdate/timeActivatedFileUpdate.C index 1f57b3e19f..d6dc1d1040 100644 --- a/src/functionObjects/utilities/timeActivatedFileUpdate/timeActivatedFileUpdate.C +++ b/src/functionObjects/utilities/timeActivatedFileUpdate/timeActivatedFileUpdate.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. + \\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -103,6 +103,8 @@ bool Foam::functionObjects::timeActivatedFileUpdate::read const dictionary& dict ) { + functionObject::read(dict); + dict.lookup("fileToUpdate") >> fileToUpdate_; dict.lookup("timeVsFile") >> timeVsFile_; diff --git a/src/functionObjects/utilities/writeDictionary/writeDictionary.C b/src/functionObjects/utilities/writeDictionary/writeDictionary.C index c0557ab37b..7d2c6c74b0 100644 --- a/src/functionObjects/utilities/writeDictionary/writeDictionary.C +++ b/src/functionObjects/utilities/writeDictionary/writeDictionary.C @@ -122,6 +122,8 @@ Foam::functionObjects::writeDictionary::~writeDictionary() bool Foam::functionObjects::writeDictionary::read(const dictionary& dict) { + regionFunctionObject::read(dict); + wordList dictNames(dict.lookup("dictNames")); HashSet uniqueNames(dictNames); dictNames_ = uniqueNames.toc(); diff --git a/src/functionObjects/utilities/writeObjects/writeObjects.C b/src/functionObjects/utilities/writeObjects/writeObjects.C index a1a049b26c..aad0e40554 100644 --- a/src/functionObjects/utilities/writeObjects/writeObjects.C +++ b/src/functionObjects/utilities/writeObjects/writeObjects.C @@ -98,6 +98,8 @@ Foam::functionObjects::writeObjects::~writeObjects() bool Foam::functionObjects::writeObjects::read(const dictionary& dict) { + functionObject::read(dict); + if (dict.found("field")) { objectNames_.setSize(1);