Added setWellsPointer, changed the interface of leaf_nodes_ slightly

This commit is contained in:
Kjetil Olsen Lye
2012-04-25 14:19:47 +02:00
parent 27af4b339d
commit 914fc1199f
3 changed files with 15 additions and 11 deletions

View File

@@ -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_);
}