Skip to content
Snippets Groups Projects
Commit 5f8319ef authored by Florian Zill's avatar Florian Zill
Browse files

[MPL] return 0 for dvalue of some permeability models

would otherwise prevent the use of dvalue for other models
parent 13860e6d
No related branches found
No related tags found
No related merge requests found
......@@ -150,10 +150,15 @@ PermeabilityMohrCoulombFailureIndexModel<DisplacementDim>::value(
template <int DisplacementDim>
PropertyDataType
PermeabilityMohrCoulombFailureIndexModel<DisplacementDim>::dValue(
VariableArray const& /*variable_array*/, Variable const /*variable*/,
VariableArray const& /*variable_array*/, Variable const variable,
ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
double const /*dt*/) const
{
if (variable == Variable::mechanical_strain)
{
return 0.;
}
OGS_FATAL(
"The derivative of the intrinsic permeability k(sigma, ...) with "
"respect to stress tensor (sigma) is not implemented because that "
......
......@@ -97,10 +97,15 @@ PropertyDataType StrainDependentPermeability<DisplacementDim>::value(
template <int DisplacementDim>
PropertyDataType StrainDependentPermeability<DisplacementDim>::dValue(
VariableArray const& /*variable_array*/, Variable const /*variable*/,
VariableArray const& /*variable_array*/, Variable const variable,
ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
double const /*dt*/) const
{
if (variable == Variable::mechanical_strain)
{
return 0.;
}
OGS_FATAL(
"The derivative of the intrinsic permeability of "
"StrainDependentPermeability"
......
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