Commit e74be396 authored by Oliver Sander's avatar Oliver Sander

[!65] corrected return type of loadBalance function

Merge branch 'issue/loadbalance_return_type' into 'master'

ref:extensions/dune-foamgrid The function loadBalance() should return a bool,
not void.

See merge request [!65]

parents 4e3f2d2c b4b99085
Pipeline #20880 passed with stage
in 4 minutes and 25 seconds
......@@ -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)
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment