diff --git a/opm/simulators/flow/CpGridVanguard.hpp b/opm/simulators/flow/CpGridVanguard.hpp index 63d4cdcdd16..00941e36305 100644 --- a/opm/simulators/flow/CpGridVanguard.hpp +++ b/opm/simulators/flow/CpGridVanguard.hpp @@ -360,12 +360,6 @@ class CpGridVanguard : public FlowBaseVanguard } #endif - // removing some connection located in inactive grid cells - void filterConnections_() - { - this->doFilterConnections_(this->schedule()); - } - // \Note: this globalTrans_ is used for domain decomposition and INIT file output. // It only contains trans_ due to permeability and does not contain thermalHalfTrans_, // diffusivity_ abd dispersivity_. The main reason is to reduce the memory usage for rank 0 diff --git a/opm/simulators/flow/FlowBaseVanguard.hpp b/opm/simulators/flow/FlowBaseVanguard.hpp index 6722730bbf5..11e685bee2c 100644 --- a/opm/simulators/flow/FlowBaseVanguard.hpp +++ b/opm/simulators/flow/FlowBaseVanguard.hpp @@ -325,7 +325,6 @@ class FlowBaseVanguard : public BaseVanguard, void callImplementationInit() { asImp_().createGrids_(); - asImp_().filterConnections_(); std::string outputDir = Parameters::Get(); bool enableEclCompatFile = !Parameters::Get(); asImp_().updateOutputDir_(outputDir, enableEclCompatFile); diff --git a/opm/simulators/flow/GenericCpGridVanguard.cpp b/opm/simulators/flow/GenericCpGridVanguard.cpp index 26afbc31b07..67788c98a39 100644 --- a/opm/simulators/flow/GenericCpGridVanguard.cpp +++ b/opm/simulators/flow/GenericCpGridVanguard.cpp @@ -600,37 +600,6 @@ void GenericCpGridVanguard::addLgrsUpdateLeafView grid.addLgrsUpdateLeafView(cells_per_dim_vec, startIJK_vec, endIJK_vec, lgrName_vec); }; -template -void GenericCpGridVanguard:: -doFilterConnections_(Schedule& schedule) -{ - // We only filter if we hold the global grid. Otherwise the filtering - // is done after load balancing as in the future the other processes - // will hold an empty partition for the global grid and hence filtering - // here would remove all well connections. - if (this->equilGrid_ != nullptr) { - ActiveGridCells activeCells(equilGrid().logicalCartesianSize(), - equilGrid().globalCell().data(), - equilGrid().size(0)); - - schedule.filterConnections(activeCells); - } - -#if HAVE_MPI - try { - // Broadcast another time to remove inactive peforations on - // slave processors. - eclBroadcast(FlowGenericVanguard::comm(), schedule); - } - catch (const std::exception& broadcast_error) { - OpmLog::error(fmt::format("Distributing properties to all processes failed\n" - "Internal error message: {}", broadcast_error.what())); - MPI_Finalize(); - std::exit(EXIT_FAILURE); - } -#endif // HAVE_MPI -} - template const Dune::CpGrid& GenericCpGridVanguard::equilGrid() const diff --git a/opm/simulators/flow/GenericCpGridVanguard.hpp b/opm/simulators/flow/GenericCpGridVanguard.hpp index b73696b4851..3f2c540568d 100644 --- a/opm/simulators/flow/GenericCpGridVanguard.hpp +++ b/opm/simulators/flow/GenericCpGridVanguard.hpp @@ -224,9 +224,6 @@ class GenericCpGridVanguard { virtual void allocTrans() = 0; virtual double getTransmissibility(unsigned I, unsigned J) const = 0; - // removing some connection located in inactive grid cells - void doFilterConnections_(Schedule& schedule); - Scalar computeCellThickness(const Element& element) const; std::unique_ptr grid_;