From 0df151a3786c96565467cef706a857d7110be643 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 2 Dec 2015 15:39:45 +0000 Subject: [PATCH] reactingEulerFoam: Lookup fvOptions from the mesh rather than construct a local copy --- .../reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.C | 3 +-- .../reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.H | 3 --- .../reactingEulerFoam/phaseSystems/phaseSystem/phaseSystemI.H | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.C b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.C index 4efd86189..4202907a2 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.C +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.C @@ -154,8 +154,7 @@ Foam::phaseSystem::phaseSystem dimensionedScalar("dpdt", dimPressure/dimTime, 0) ), - MRF_(mesh_), - fvOptions_(mesh_) + MRF_(mesh_) { phi_.writeOpt() = IOobject::AUTO_WRITE; diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.H b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.H index c5ec2aa50..664add034 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.H +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystem.H @@ -176,9 +176,6 @@ protected: //- Optional MRF zones IOMRFZoneList MRF_; - //- Optional FV-options - mutable fv::options fvOptions_; - //- Blending methods blendingMethodTable blendingMethods_; diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystemI.H b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystemI.H index 125d286d9..7f0e73be5 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystemI.H +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseSystem/phaseSystemI.H @@ -84,7 +84,7 @@ inline const Foam::IOMRFZoneList& Foam::phaseSystem::MRF() const inline Foam::fv::options& Foam::phaseSystem::fvOptions() const { - return fvOptions_; + return fv::options::New(mesh_); }