mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3936 from atgeirr/use-gridview-argument
Re-add grid view argument to doLoadBalance_().
This commit is contained in:
commit
0bb293aeb0
@ -134,7 +134,7 @@ public:
|
||||
#if HAVE_MPI
|
||||
this->doLoadBalance_(this->edgeWeightsMethod(), this->ownersFirst(),
|
||||
this->serialPartitioning(), this->enableDistributedWells(),
|
||||
this->zoltanImbalanceTol(),
|
||||
this->zoltanImbalanceTol(), this->gridView(),
|
||||
this->schedule(), this->centroids_,
|
||||
this->eclState(), this->parallelWells_, this->numJacobiBlocks());
|
||||
#endif
|
||||
|
@ -78,6 +78,7 @@ void EclGenericCpGridVanguard<ElementMapper,GridView,Scalar>::doLoadBalance_(Dun
|
||||
bool serialPartitioning,
|
||||
bool enableDistributedWells,
|
||||
double zoltanImbalanceTol,
|
||||
const GridView& gridView,
|
||||
const Schedule& schedule,
|
||||
std::vector<double>& centroids,
|
||||
EclipseState& eclState1,
|
||||
@ -100,7 +101,6 @@ void EclGenericCpGridVanguard<ElementMapper,GridView,Scalar>::doLoadBalance_(Dun
|
||||
// convert to transmissibility for faces
|
||||
// TODO: grid_->numFaces() is not generic. use grid_->size(1) instead? (might
|
||||
// not work)
|
||||
const auto& gridView = grid_->leafGridView();
|
||||
unsigned numFaces = grid_->numFaces();
|
||||
std::vector<double> faceTrans;
|
||||
int loadBalancerSet = externalLoadBalancer.has_value();
|
||||
|
@ -115,6 +115,7 @@ protected:
|
||||
void doLoadBalance_(Dune::EdgeWeightMethod edgeWeightsMethod,
|
||||
bool ownersFirst, bool serialPartitioning,
|
||||
bool enableDistributedWells, double zoltanImbalanceTol,
|
||||
const GridView& gridv,
|
||||
const Schedule& schedule,
|
||||
std::vector<double>& centroids,
|
||||
EclipseState& eclState,
|
||||
|
Loading…
Reference in New Issue
Block a user