externalTemperature BC: corrected intialization of qrPrevious

This commit is contained in:
Chris Greenshields
2025-01-23 19:01:39 +00:00
parent 9eccd46b29
commit cbfee5596e

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2025 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -146,7 +146,7 @@ externalTemperatureFvPatchScalarField
qrName_ != word::null
? dict.found("qrPrevious")
? scalarField("qrPrevious", dimPower/dimArea, dict, p.size())
: scalarField(0, p.size())
: scalarField(p.size(), 0)
: scalarField()
)
{