Skip to content
Snippets Groups Projects
Commit b77546eb authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MPL] Assert frozen phase existence.

parent dc71760a
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,7 @@ PropertyDataType VolumeFractionAverage::value(
// get frozen pore volume fraction, and porosity
if (medium.hasProperty(PropertyType::volume_fraction))
{
assert(properties_.frozen != nullptr);
auto const& fraction = medium[PropertyType::volume_fraction];
phi_fr = std::get<double>(fraction.value(variable_array, pos, t, dt));
prop_value_frozen = std::get<double>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment