Use basicThermo::dictName rather than hard-coding "thermophysicalProperties"

This commit is contained in:
Henry Weller
2015-06-24 10:44:57 +01:00
parent b73fe0d4c3
commit 5e05479e2a
22 changed files with 34 additions and 33 deletions

View File

@ -98,7 +98,7 @@ Foam::fv::fixedTemperatureConstraint::fixedTemperatureConstraint
// is obtained
const basicThermo& thermo =
mesh_.lookupObject<basicThermo>("thermophysicalProperties");
mesh_.lookupObject<basicThermo>(basicThermo::dictName);
fieldNames_.setSize(1, thermo.he().name());
@ -115,7 +115,7 @@ void Foam::fv::fixedTemperatureConstraint::constrain
)
{
const basicThermo& thermo =
mesh_.lookupObject<basicThermo>("thermophysicalProperties");
mesh_.lookupObject<basicThermo>(basicThermo::dictName);
switch (mode_)
{