Skip to content
Snippets Groups Projects
Commit e293f72d 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 67c16ee5
Branches
Tags
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment