using reference of WellState in resetWellControlFromState()

This commit is contained in:
Kai Bao committed 2017-04-11 16:51:16 +02:00
1 parent 0acb646a4d
commit ea3adb3c37
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -155,7 +155,7 @@ enum WellVariablePositions {
int numCells() const;
void resetWellControlFromState(WellState xw) const;
void resetWellControlFromState(const WellState& xw) const;
const Wells& wells() const;
+1 -1
View File
@@ -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) {