Skip to content
Snippets Groups Projects
Commit 658f0f66 authored by Christian Engwer's avatar Christian Engwer
Browse files

explicit braces to avoid ambiguous 'else'

[[Imported from SVN: r926]]
parent e4634b6e
No related branches found
No related tags found
No related merge requests found
......@@ -657,6 +657,7 @@ namespace Dune
dinfo << "Building "<<noAggregates<<" aggregates took "<<watch.elapsed()<<" seconds."<<std::endl;
if(!noAggregates || unknowns/noAggregates<criterion.minCoarsenRate())
{
if(procs>1 && criterion.accumulate())
DUNE_THROW(NotImplemented, "Accumulation to fewer processes not yet implemented!");
else{
......@@ -671,7 +672,7 @@ namespace Dune
delete aggregatesMap;
break;
}
}
unknowns = noAggregates;
if(noAggregates < criterion.coarsenTarget() && procs>1 && criterion.accumulate()) {
......
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