mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
check wellsActive() before handling well equations in assemble()
This commit is contained in:
@@ -787,6 +787,10 @@ namespace detail {
|
||||
|
||||
// -------- Well equations ----------
|
||||
|
||||
if ( ! wellsActive() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
V aliveWells;
|
||||
const int np = wells().number_of_phases;
|
||||
std::vector<ADB> cq_s(np, ADB::null());
|
||||
|
||||
Reference in New Issue
Block a user