Merge pull request #5749 from michal-toth/feature/graph-of-grid

Zoltan partitioner with all perforated cells of a well merged to one vertex
This commit is contained in:
Markus Blatt 2024-12-05 12:05:16 +01:00 committed by GitHub
commit e24d355e66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -155,7 +155,8 @@ doLoadBalance_(const Dune::EdgeWeightMethod edgeWeightsMethod,
FlowGenericVanguard::ParallelWellStruct& parallelWells, FlowGenericVanguard::ParallelWellStruct& parallelWells,
const int numJacobiBlocks) const int numJacobiBlocks)
{ {
if (partitionMethod == Dune::PartitionMethod::zoltan && !this->zoltanParams().empty()) if ((partitionMethod == Dune::PartitionMethod::zoltan
|| partitionMethod == Dune::PartitionMethod::zoltanGoG) && !this->zoltanParams().empty())
this->grid_->setPartitioningParams(setupZoltanParams(this->zoltanParams())); this->grid_->setPartitioningParams(setupZoltanParams(this->zoltanParams()));
if (partitionMethod == Dune::PartitionMethod::metis && !this->metisParams().empty()) if (partitionMethod == Dune::PartitionMethod::metis && !this->metisParams().empty())
this->grid_->setPartitioningParams(setupMetisParams(this->metisParams())); this->grid_->setPartitioningParams(setupMetisParams(this->metisParams()));