Commit da10f8a7 authored by wenqing's avatar wenqing

[MPL/getLiquidThermalExpansivity] Fixed a bug in checking the existence of thermal_expansivity

parent f27e55d9
Pipeline #1491 passed with stages
in 27 minutes and 17 seconds
......@@ -24,13 +24,12 @@ double getLiquidThermalExpansivity(Phase const& phase,
ParameterLib::SpatialPosition const& pos,
double const t, double const dt)
auto const thermal_expansivity_ptr =
// The thermal expansivity is explicitly given in the project file.
if (thermal_expansivity_ptr)
if (phase.hasProperty(
return (*thermal_expansivity_ptr)
return phase
.template value<double>(vars, pos, t, dt);
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