Skip to content
Snippets Groups Projects
Commit 1f17d626 authored by Markus Blatt's avatar Markus Blatt
Browse files

Bugfix.

calculate max distance correctly. 
neigbours method no visits the neighbour and counts them instead of
just returning (0,0). (Fixes the rounding step for the aggregates.)

[[Imported from SVN: r1055]]
parent 747fd756
Branches
Tags
No related merge requests found
......@@ -73,7 +73,7 @@ namespace Dune
*/
void setDefaultValuesIsotropic(std::size_t dim, std::size_t diameter=2)
{
maxDistance_=dim;
maxDistance_=0;
std::size_t csize=1;
for(; dim>0; dim--) {
......@@ -1767,6 +1767,7 @@ namespace Dune
typedef AggregateVisitor<DependencyCounter> Counter;
typedef tuple<Counter,Counter> CounterTuple;
CombinedFunctor<CounterTuple> visitors(CounterTuple(Counter(aggregates, AggregatesMap<Vertex>::UNAGGREGATED, unused), Counter(aggregates, aggregate, aggregated)));
visitNeighbours(*graph_, vertex, visitors);
return std::make_pair(unused.value(), aggregated.value());
}
......@@ -1824,7 +1825,6 @@ namespace Dune
{
// Todo
Dune::dvverb<<" Admissible not yet implemented!"<<std::endl;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment