Skip to content
Snippets Groups Projects
Commit e74be396 authored by Oliver Sander's avatar Oliver Sander
Browse files

[!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]

  [!65]: gitlab.dune-project.org/extensions/dune-foamgrid/merge_requests/65
parents 4e3f2d2c b4b99085
No related branches found
No related tags found
1 merge request!65corrected return type of loadBalance function
Pipeline #20880 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment