diff --git a/dune/foamgrid/foamgrid.hh b/dune/foamgrid/foamgrid.hh index 73f16ad7202b59d814547f0372bc578e9c58e8ea..68271a5d8fbec0722cfc419d59475a77a8ada733 100644 --- a/dune/foamgrid/foamgrid.hh +++ b/dune/foamgrid/foamgrid.hh @@ -540,15 +540,16 @@ public: /** \brief Distributes this grid over the available nodes in a distributed machine */ template<class DataHandle> - void loadBalance(DataHandle& data) + bool loadBalance(DataHandle& data) { - loadBalance(); + return loadBalance(); } - void loadBalance() + bool loadBalance() { if (comm().size() > 1) DUNE_THROW(Dune::NotImplemented, "Load balancing not implemented. Foamgrid does not run in parallel yet!"); + return false; } /** \brief The communication interface