check wellsActive() before handling well equations in assemble()

This commit is contained in:
Kai Bao
2015-06-16 11:33:52 +02:00
parent 079c3a467f
commit 043d542e29

View File

@@ -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());