Set wd.allowCrossFlow directly

This commit is contained in:
Tor Harald Sandve 2015-10-07 12:50:00 +02:00
parent cf35ecbb05
commit da44c2cfd6

View File

@ -248,11 +248,7 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
else
wd.type = PRODUCER;
if (well->getAllowCrossFlow()) {
wd.allowCrossFlow = true;
} else {
wd.allowCrossFlow = false;
}
wd.allowCrossFlow = well->getAllowCrossFlow();
well_data.push_back(wd);
}
}