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

Print time including coarse solver setup.

parent c0ccfcbd
No related branches found
No related tags found
No related merge requests found
......@@ -397,6 +397,7 @@ namespace Dune
createHierarchies(criterion, const_cast<Operator&>(matrix), pinfo);
}
template<class M, class X, class S, class PI, class A>
AMG<M,X,S,PI,A>::~AMG()
{
......@@ -430,9 +431,6 @@ namespace Dune
// build the necessary smoother hierarchies
matrices_->coarsenSmoother(*smoothers_, smootherArgs_);
if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
std::cout<<"Building Hierarchy of "<<matrices_->maxlevels()<<" levels took "<<watch.elapsed()<<" seconds."<<std::endl;
if(buildHierarchy_ && matrices_->levels()==matrices_->maxlevels()) {
// We have the carsest level. Create the coarse Solver
SmootherArgs sargs(smootherArgs_);
......@@ -488,6 +486,10 @@ namespace Dune
*coarseSmoother_, 1E-2, 1000, 0));
}
}
if(verbosity_>0 && matrices_->parallelInformation().finest()->communicator().rank()==0)
std::cout<<"Building hierarchy of "<<matrices_->maxlevels()<<" levels "
<<"(inclusive coarse solver) took "<<watch.elapsed()<<" seconds."<<std::endl;
}
......
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