mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added setWellsPointer, changed the interface of leaf_nodes_ slightly
This commit is contained in:
@@ -610,12 +610,7 @@ namespace Opm
|
||||
}
|
||||
|
||||
std::cout << "Made well struct" << std::endl;
|
||||
// \TODO comment this.
|
||||
for (size_t i = 0; i < well_collection_.getLeafNodes().size(); i++) {
|
||||
WellNode* node = static_cast<WellNode*>(well_collection_.getLeafNodes()[i].get());
|
||||
// We know that getLeafNodes() is ordered the same way as they're indexed in w_
|
||||
node->setWellsPointer(w_, i);
|
||||
}
|
||||
well_collection_.setWellsPointer(w_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user