mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Activate distributed standard wells.
We introduce a new parameter --enable-distributed-wells=<true|false> for this. During startup we check that the model either only has standard wells or that multisegement wells are actively interpreted as standard wells (by way of passing --enable-multisegment-wells=false as an option).
This commit is contained in:
1 parent
57d158bbbe
commit
f464d93f15
3 files changed
+69
-2
No files matched your search
@@ -175,6 +175,7 @@ public:
|
||||
Dune::EdgeWeightMethod edgeWeightsMethod = this->edgeWeightsMethod();
|
||||
bool ownersFirst = this->ownersFirst();
|
||||
bool serialPartitioning = this->serialPartitioning();
|
||||
bool enableDistributedWells = this->enableDistributedWells();
|
||||
Scalar zoltanImbalanceTol = this->zoltanImbalanceTol();
|
||||
|
||||
// convert to transmissibility for faces
|
||||
@@ -222,7 +223,8 @@ public:
|
||||
PropsCentroidsDataHandle<Dune::CpGrid> handle(*grid_, eclState, eclGrid, this->centroids_,
|
||||
cartesianIndexMapper());
|
||||
this->parallelWells_ = std::get<1>(grid_->loadBalance(handle, edgeWeightsMethod, &wells, serialPartitioning,
|
||||
faceTrans.data(), ownersFirst, false, 1, true, zoltanImbalanceTol));
|
||||
faceTrans.data(), ownersFirst, false, 1, true, zoltanImbalanceTol,
|
||||
enableDistributedWells));
|
||||
}
|
||||
catch(const std::bad_cast& e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user