Skip to content
Snippets Groups Projects
Commit aef2fd5e authored by mattijs's avatar mattijs
Browse files

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.
parent 7cb12e20
No related branches found
No related tags found
No related merge requests found
......@@ -191,9 +191,13 @@ Foam::scalarTransport::scalarTransport
{
read(dict);
// Force creation of transported field so any bcs using it can look it
// up
volScalarField& T = transportedField();
if (resetOnStartUp_)
{
transportedField() == dimensionedScalar("zero", dimless, 0.0);
T == dimensionedScalar("zero", dimless, 0.0);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment