mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-15 04:43:26 -06:00
throw when calling addWellContributions() for MSW
This commit is contained in:
parent
cc472da226
commit
f40c1cc12f
@ -152,6 +152,8 @@ namespace Opm
|
||||
const WellState& well_state,
|
||||
Opm::DeferredLogger& deferred_logger) override; // should be const?
|
||||
|
||||
virtual void addWellContributions(Mat& mat) const override;
|
||||
|
||||
/// number of segments for this well
|
||||
/// int number_of_segments_;
|
||||
int numberOfSegments() const;
|
||||
|
@ -875,6 +875,18 @@ namespace Opm
|
||||
|
||||
|
||||
|
||||
template<typename TypeTag>
|
||||
void
|
||||
MultisegmentWell<TypeTag>::
|
||||
addWellContributions(Mat& /* mat */) const
|
||||
{
|
||||
OPM_THROW(std::runtime_error, "addWellContributions is not supported by multisegment well yet");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
template <typename TypeTag>
|
||||
const WellSegments&
|
||||
MultisegmentWell<TypeTag>::
|
||||
|
@ -208,8 +208,7 @@ namespace Opm
|
||||
void calculateReservoirRates(WellState& well_state) const;
|
||||
|
||||
// Add well contributions to matrix
|
||||
virtual void addWellContributions(Mat&) const
|
||||
{}
|
||||
virtual void addWellContributions(Mat&) const = 0;
|
||||
|
||||
void addCellRates(RateVector& rates, int cellIdx) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user