using reference of WellState in resetWellControlFromState()

This commit is contained in:
Kai Bao 2017-03-08 11:29:06 +01:00
parent 0acb646a4d
commit ea3adb3c37
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ enum WellVariablePositions {
int numCells() const; int numCells() const;
void resetWellControlFromState(WellState xw) const; void resetWellControlFromState(const WellState& xw) const;
const Wells& wells() const; const Wells& wells() const;

View File

@ -545,7 +545,7 @@ namespace Opm {
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext, typename MaterialLaw> template<typename FluidSystem, typename BlackoilIndices, typename ElementContext, typename MaterialLaw>
void void
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext, MaterialLaw>:: StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext, MaterialLaw>::
resetWellControlFromState(WellState xw) const resetWellControlFromState(const WellState& xw) const
{ {
const int nw = wells_->number_of_wells; const int nw = wells_->number_of_wells;
for (int w = 0; w < nw; ++w) { for (int w = 0; w < nw; ++w) {