EclCpGridManager: disable parallelism (for now)

this is because the loadBalance() method of Dune::CpGrid is seriously
broken at the moment: it throws away elements even in sequential mode
for some more relevant grids. ("more relevant" == "Norne". Norne is is
buggy itself because it features two completely disjoint parts.)

but it is even worse than that: if the bug mentioned above bites,
Dune::CpGrid cannot even agree for itself how many elements it has
which causes the CartesianIndexMapper to segfault.
This commit is contained in:
Andreas Lauser 2016-01-17 21:15:23 +01:00
parent 879e8a613d
commit 195e6058f1

View File

@ -125,9 +125,15 @@ public:
*/ */
void loadBalance() void loadBalance()
{ {
#if HAVE_MPI
#warning "Since Dune::CpGrid is buggy when load balancing, ebos currently disables parallelism"
#endif
#if 0
// distribute the grid and switch to the distributed view // distribute the grid and switch to the distributed view
grid_->loadBalance(); grid_->loadBalance();
grid_->switchToDistributedView(); grid_->switchToDistributedView();
#endif
cartesianIndexMapper_ = new CartesianIndexMapper(*grid_); cartesianIndexMapper_ = new CartesianIndexMapper(*grid_);
} }