mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use Consistent Grid Views for Transmissibility Calculation
There was an implied assumption that the "gridv" parameter would coincide with "grid_->leafGridView()". Make this assumption explicit.
This commit is contained in:
parent
26a9582ece
commit
af94be5023
@ -134,7 +134,7 @@ public:
|
|||||||
#if HAVE_MPI
|
#if HAVE_MPI
|
||||||
this->doLoadBalance_(this->edgeWeightsMethod(), this->ownersFirst(),
|
this->doLoadBalance_(this->edgeWeightsMethod(), this->ownersFirst(),
|
||||||
this->serialPartitioning(), this->enableDistributedWells(),
|
this->serialPartitioning(), this->enableDistributedWells(),
|
||||||
this->zoltanImbalanceTol(), this->gridView(),
|
this->zoltanImbalanceTol(),
|
||||||
this->schedule(), this->centroids_,
|
this->schedule(), this->centroids_,
|
||||||
this->eclState(), this->parallelWells_, this->numJacobiBlocks());
|
this->eclState(), this->parallelWells_, this->numJacobiBlocks());
|
||||||
#endif
|
#endif
|
||||||
|
@ -78,7 +78,6 @@ void EclGenericCpGridVanguard<ElementMapper,GridView,Scalar>::doLoadBalance_(Dun
|
|||||||
bool serialPartitioning,
|
bool serialPartitioning,
|
||||||
bool enableDistributedWells,
|
bool enableDistributedWells,
|
||||||
double zoltanImbalanceTol,
|
double zoltanImbalanceTol,
|
||||||
const GridView& gridv,
|
|
||||||
const Schedule& schedule,
|
const Schedule& schedule,
|
||||||
std::vector<double>& centroids,
|
std::vector<double>& centroids,
|
||||||
EclipseState& eclState1,
|
EclipseState& eclState1,
|
||||||
@ -108,7 +107,7 @@ void EclGenericCpGridVanguard<ElementMapper,GridView,Scalar>::doLoadBalance_(Dun
|
|||||||
grid_->comm().broadcast(&loadBalancerSet, 1, 0);
|
grid_->comm().broadcast(&loadBalancerSet, 1, 0);
|
||||||
if (!loadBalancerSet){
|
if (!loadBalancerSet){
|
||||||
faceTrans.resize(numFaces, 0.0);
|
faceTrans.resize(numFaces, 0.0);
|
||||||
ElementMapper elemMapper(gridv, Dune::mcmgElementLayout());
|
ElementMapper elemMapper(gridView, Dune::mcmgElementLayout());
|
||||||
auto elemIt = gridView.template begin</*codim=*/0>();
|
auto elemIt = gridView.template begin</*codim=*/0>();
|
||||||
const auto& elemEndIt = gridView.template end</*codim=*/0>();
|
const auto& elemEndIt = gridView.template end</*codim=*/0>();
|
||||||
for (; elemIt != elemEndIt; ++ elemIt) {
|
for (; elemIt != elemEndIt; ++ elemIt) {
|
||||||
|
@ -115,7 +115,7 @@ protected:
|
|||||||
void doLoadBalance_(Dune::EdgeWeightMethod edgeWeightsMethod,
|
void doLoadBalance_(Dune::EdgeWeightMethod edgeWeightsMethod,
|
||||||
bool ownersFirst, bool serialPartitioning,
|
bool ownersFirst, bool serialPartitioning,
|
||||||
bool enableDistributedWells, double zoltanImbalanceTol,
|
bool enableDistributedWells, double zoltanImbalanceTol,
|
||||||
const GridView& gridv, const Schedule& schedule,
|
const Schedule& schedule,
|
||||||
std::vector<double>& centroids,
|
std::vector<double>& centroids,
|
||||||
EclipseState& eclState,
|
EclipseState& eclState,
|
||||||
EclGenericVanguard::ParallelWellStruct& parallelWells,
|
EclGenericVanguard::ParallelWellStruct& parallelWells,
|
||||||
|
Loading…
Reference in New Issue
Block a user