mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
using reference of WellState in resetWellControlFromState()
This commit is contained in:
1 parent
0acb646a4d
commit
ea3adb3c37
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user