Setup parameters for Zoltan partitioner with GraphOfGrid (from opm-grid).

This commit is contained in:
Michal Tóth
2024-11-19 14:27:06 +01:00
parent b6f23f6fe5
commit cab7636fc5

View File

@@ -158,7 +158,8 @@ doLoadBalance_(const Dune::EdgeWeightMethod edgeWeightsMethod,
FlowGenericVanguard::ParallelWellStruct& parallelWells,
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()));
if (partitionMethod == Dune::PartitionMethod::metis && !this->metisParams().empty())
this->grid_->setPartitioningParams(setupMetisParams(this->metisParams()));