From eea72282ab42438cf0232e962b071a6e4aa29599 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Mon, 20 Nov 2023 14:32:11 +0000 Subject: [PATCH] ENH: CHT solvers - avoid fvSolution persisting on time db --- .../chtMultiRegionFoam/include/createCoupledRegions.H | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/include/createCoupledRegions.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/include/createCoupledRegions.H index 6175adc5e6..5c68ae7c07 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/include/createCoupledRegions.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/include/createCoupledRegions.H @@ -1,6 +1,8 @@ -fvSolution solutionDict(runTime); - -bool coupled(solutionDict.getOrDefault("coupledEnergyField", false)); +bool coupled = false; +{ + fvSolution solutionDict(runTime); + solutionDict.readIfPresent("coupledEnergyField", coupled); +} autoPtr> fvMatrixAssemblyPtr;