mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
WellInterface: make initPrimaryVariablesEvaluation non-const
this will obviously modify well state
This commit is contained in:
@@ -94,7 +94,7 @@ namespace Opm
|
||||
const std::vector< Scalar >& B_avg,
|
||||
const bool changed_to_open_this_step) override;
|
||||
|
||||
virtual void initPrimaryVariablesEvaluation() const override;
|
||||
void initPrimaryVariablesEvaluation() override;
|
||||
|
||||
/// updating the well state based the current control mode
|
||||
virtual void updateWellStateWithTarget(const Simulator& ebos_simulator,
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace Opm
|
||||
template <typename TypeTag>
|
||||
void
|
||||
MultisegmentWell<TypeTag>::
|
||||
initPrimaryVariablesEvaluation() const
|
||||
initPrimaryVariablesEvaluation()
|
||||
{
|
||||
this->MSWEval::initPrimaryVariablesEvaluation();
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace Opm
|
||||
const bool changed_to_open_this_step) override;
|
||||
|
||||
|
||||
virtual void initPrimaryVariablesEvaluation() const override;
|
||||
void initPrimaryVariablesEvaluation() override;
|
||||
|
||||
/// check whether the well equations get converged for this well
|
||||
virtual ConvergenceReport getWellConvergence(const WellState& well_state,
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Opm
|
||||
|
||||
template<typename TypeTag>
|
||||
void StandardWell<TypeTag>::
|
||||
initPrimaryVariablesEvaluation() const
|
||||
initPrimaryVariablesEvaluation()
|
||||
{
|
||||
this->primary_variables_.init();
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ public:
|
||||
const std::vector< Scalar >& B_avg,
|
||||
const bool changed_to_open_this_step);
|
||||
|
||||
virtual void initPrimaryVariablesEvaluation() const = 0;
|
||||
virtual void initPrimaryVariablesEvaluation() = 0;
|
||||
|
||||
virtual ConvergenceReport getWellConvergence(const WellState& well_state, const std::vector<double>& B_avg, DeferredLogger& deferred_logger, const bool relax_tolerance) const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user