Skip to content
Snippets Groups Projects
Commit 44656806 authored by Norbert Grunwald's avatar Norbert Grunwald Committed by Dmitri Naumov
Browse files

fatal error to prevent div by zero in saturationBrooksCorey

parent d168c818
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,10 @@ inline std::unique_ptr<SaturationBrooksCorey> createSaturationBrooksCorey(
auto const entry_pressure =
//! \ogs_file_param{prj__media__medium__properties__property__SaturationBrooksCorey__entry_pressure}
config.getConfigParameter<double>("entry_pressure");
if (entry_pressure < 0.)
{
OGS_FATAL("Paramater 'entry_pressure' must be positive.");
}
return std::make_unique<SaturationBrooksCorey>(residual_liquid_saturation,
residual_gas_saturation,
......
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