Commit 1dc9e7c4 authored by sergio's avatar sergio Committed by Andrew Heather
Browse files

BUG: Fixing entry consistency in PhaseMixtureEThermo.C

and reading dpdt in one basicThermo constructor
parent 4b1eea0c
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -570,7 +570,7 @@ bool Foam::twoPhaseMixtureEThermo::read()
{
if (basicThermo::read() && thermoIncompressibleTwoPhaseMixture::read())
{
basicThermo::readEntry("pDivU", pDivU_);
basicThermo::readIfPresent("pDivU", pDivU_);
basicThermo::readEntry("TSat", TSat_);
return true;
}
......
......@@ -242,7 +242,9 @@ Foam::basicThermo::basicThermo
),
mesh,
dimensionedScalar(dimensionSet(1, -1, -1, 0, 0), Zero)
)
),
dpdt_(lookupOrDefault<Switch>("dpdt", true))
{}
......
Markdown is supported
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