Let WellModel decide whether to apply well contributions.

It queries the Well whether the jacobian also contains well contributions.
If not then it applies them in the operator in addition. Thus the
well knows whether that is needed or not.
This commit is contained in:
Markus Blatt
2018-02-26 12:23:20 +01:00
parent afb806bc3e
commit 96a636f25b
6 changed files with 20 additions and 39 deletions

View File

@@ -844,14 +844,6 @@ namespace Opm
return 1.0;
}
template<typename TypeTag>
void
WellInterface<TypeTag>::addWellContributions(Mat& mat) const
{
OPM_THROW(NotImplemented, "This well class does not support adding well contributions"
<< "to the matrix");
}