ENH: CHT solvers - avoid fvSolution persisting on time db

This commit is contained in:
Andrew Heather
2023-11-20 14:32:11 +00:00
parent 11ecf55a86
commit eea72282ab

View File

@ -1,6 +1,8 @@
fvSolution solutionDict(runTime);
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false));
bool coupled = false;
{
fvSolution solutionDict(runTime);
solutionDict.readIfPresent("coupledEnergyField", coupled);
}
autoPtr<fvMatrix<scalar>> fvMatrixAssemblyPtr;