mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -06:00
using reference of WellState in resetWellControlFromState()
This commit is contained in:
parent
0acb646a4d
commit
ea3adb3c37
@ -155,7 +155,7 @@ enum WellVariablePositions {
|
||||
|
||||
int numCells() const;
|
||||
|
||||
void resetWellControlFromState(WellState xw) const;
|
||||
void resetWellControlFromState(const WellState& xw) const;
|
||||
|
||||
const Wells& wells() const;
|
||||
|
||||
|
@ -545,7 +545,7 @@ namespace Opm {
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext, typename MaterialLaw>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext, MaterialLaw>::
|
||||
resetWellControlFromState(WellState xw) const
|
||||
resetWellControlFromState(const WellState& xw) const
|
||||
{
|
||||
const int nw = wells_->number_of_wells;
|
||||
for (int w = 0; w < nw; ++w) {
|
||||
|
Loading…
Reference in New Issue
Block a user