From c527e15b638cd72757d1e495ee9fc16f02e301cb Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 1 Sep 2015 09:30:04 +0200 Subject: [PATCH] Use well information during load balancing. With this commit we pass the well information to the loadbalance method of CpGrid to ensure that each well is stored completely on one process. --- opm/autodiff/RedistributeDataHandles.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/RedistributeDataHandles.hpp b/opm/autodiff/RedistributeDataHandles.hpp index 9bab1dcb6..14cffe8cf 100644 --- a/opm/autodiff/RedistributeDataHandles.hpp +++ b/opm/autodiff/RedistributeDataHandles.hpp @@ -324,7 +324,7 @@ void distributeGridAndData( Dune::CpGrid& grid, global_grid.switchToGlobalView(); // distribute the grid and switch to the distributed view - grid.loadBalance(); + grid.loadBalance(eclipseState); grid.switchToDistributedView(); distributed_props = std::make_shared(properties, grid.numCells());