mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
removing one updateWellControls from solveWellEq
not recalling why adding it in the first place. And correcting some comments for clarification.
This commit is contained in:
parent
e049508eec
commit
ac67a10316
@ -1088,7 +1088,6 @@ namespace detail {
|
||||
const Eigen::VectorXd& dx = solver.solve(total_residual_v.matrix());
|
||||
assert(dx.size() == total_residual_v.size());
|
||||
asImpl().wellModel().updateWellState(dx.array(), dpMaxRel(), well_state);
|
||||
asImpl().wellModel().updateWellControls(well_state);
|
||||
}
|
||||
// We have to update the well controls regardless whether there are local
|
||||
// wells active or not as parallel logging will take place that needs to
|
||||
|
@ -796,10 +796,11 @@ namespace Opm
|
||||
well_node->setShouldUpdateWellTargets(true);
|
||||
} else {
|
||||
// no constraints got broken
|
||||
// the wells running under group control should set to be under group control
|
||||
// it is based on the fact that we begin with setting all the wells be be under individual control
|
||||
// The wells switch to be under group control after breaking one of the group target/limit.
|
||||
// It is the same philosophy with the current srategy of the well control changing.
|
||||
// The wells running under group control should set to be under group control
|
||||
// It is based on the fact that we begin with setting all the wells be be under individual control.
|
||||
// The wells have been running from last time step under group control, will be reset to be under individual control
|
||||
// when rebuilding WellsManager. They need to set to be under group control (non-individual control) when they keep
|
||||
// running under group control.
|
||||
WellNode* well_node = dynamic_cast<Opm::WellNode *>(well_collection_->findNode(std::string(wells().name[w])));
|
||||
if (well_node->individualControl()) {
|
||||
// the wells running under group control, meaning they are not under individual control
|
||||
|
Loading…
Reference in New Issue
Block a user