Skip to content
Snippets Groups Projects
Commit e125cf57 authored by andy's avatar andy
Browse files

BUG: Corrected initialisation of field name

parent 384a6372
Branches
Tags
No related merge requests found
...@@ -105,9 +105,6 @@ void Foam::fv::interRegionExplicitPorositySource::initialise() ...@@ -105,9 +105,6 @@ void Foam::fv::interRegionExplicitPorositySource::initialise()
).ptr() ).ptr()
), ),
fieldNames_.setSize(1, UName_);
applied_.setSize(1, false);
firstIter_ = false; firstIter_ = false;
} }
...@@ -128,7 +125,13 @@ Foam::fv::interRegionExplicitPorositySource::interRegionExplicitPorositySource ...@@ -128,7 +125,13 @@ Foam::fv::interRegionExplicitPorositySource::interRegionExplicitPorositySource
UName_(coeffs_.lookupOrDefault<word>("UName", "U")), UName_(coeffs_.lookupOrDefault<word>("UName", "U")),
rhoName_(coeffs_.lookupOrDefault<word>("rhoName", "rho")), rhoName_(coeffs_.lookupOrDefault<word>("rhoName", "rho")),
muName_(coeffs_.lookupOrDefault<word>("muName", "thermo:mu")) muName_(coeffs_.lookupOrDefault<word>("muName", "thermo:mu"))
{} {
if (active_)
{
fieldNames_.setSize(1, UName_);
applied_.setSize(1, false);
}
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment