mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: scalarTransport: force early creation of transported field
Some bcs (e.g. humidity) use an external transported field so this needs to be registered asap.
This commit is contained in:
@ -191,9 +191,13 @@ Foam::scalarTransport::scalarTransport
|
|||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
|
|
||||||
|
// Force creation of transported field so any bcs using it can look it
|
||||||
|
// up
|
||||||
|
volScalarField& T = transportedField();
|
||||||
|
|
||||||
if (resetOnStartUp_)
|
if (resetOnStartUp_)
|
||||||
{
|
{
|
||||||
transportedField() == dimensionedScalar("zero", dimless, 0.0);
|
T == dimensionedScalar("zero", dimless, 0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user