diff --git a/MaterialLib/MPL/Properties/CreateRelPermBrooksCorey.cpp b/MaterialLib/MPL/Properties/CreateRelPermBrooksCorey.cpp index 9cabb0beec373e20fcabd3232be41451c3e35dbb..b9b0f89539e2e6e0946e223883e7dc65eb60c98a 100644 --- a/MaterialLib/MPL/Properties/CreateRelPermBrooksCorey.cpp +++ b/MaterialLib/MPL/Properties/CreateRelPermBrooksCorey.cpp @@ -36,7 +36,7 @@ std::unique_ptr<RelPermBrooksCorey> createRelPermBrooksCorey( auto const exponent = //! \ogs_file_param{prj__media__medium__properties__property__RelPermBrooksCorey__lambda} config.getConfigParameter<double>("lambda"); - if (exponent == 0.) + if (exponent <= 0.) { OGS_FATAL("Exponent 'lambda' must be positive."); } diff --git a/MaterialLib/MPL/Properties/RelPermBrooksCorey.cpp b/MaterialLib/MPL/Properties/RelPermBrooksCorey.cpp index a2a22c507331d001decf645e5b79cfa642d7f050..6ff47331871b9777a3ca78f7023e4973622fef5b 100644 --- a/MaterialLib/MPL/Properties/RelPermBrooksCorey.cpp +++ b/MaterialLib/MPL/Properties/RelPermBrooksCorey.cpp @@ -26,7 +26,6 @@ RelPermBrooksCorey::RelPermBrooksCorey( const double min_relative_permeability_liquid, const double min_relative_permeability_gas, const double exponent) - : _residual_liquid_saturation(residual_liquid_saturation), _residual_gas_saturation(residual_gas_saturation), _min_relative_permeability_liquid(min_relative_permeability_liquid), diff --git a/MaterialLib/MPL/Properties/RelPermBrooksCorey.h b/MaterialLib/MPL/Properties/RelPermBrooksCorey.h index 0f18e81292ed6d40e49fefa0e1a1bee278a6eeee..a387ac129a5c78a0dbc15c0fc21f807d3d0d57d3 100644 --- a/MaterialLib/MPL/Properties/RelPermBrooksCorey.h +++ b/MaterialLib/MPL/Properties/RelPermBrooksCorey.h @@ -45,7 +45,7 @@ public: const double /*_min_relative_permeability_gas*/, const double /*exponent*/ ); - /// This method assigns a pointer to the meterial object that is the owner + /// This method assigns a pointer to the material object that is the owner /// of this property void setScale( std::variant<Medium*, Phase*, Component*> scale_pointer) override