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

Easier setup of AMG in sequential mode, e. g.:

  Dune::MatrixAdapter<BCRSMat,Vector,Vector> fop(mat);

  typedef Dune::Amg::MatrixHierarchy<BCRSMat,ParallelIndexSet> MHierarchy;
  typedef Dune::Amg::CoarsenCriterion<Dune::Amg::SymmetricCriterion<BCRSMat,Dune::Amg::FirstDiagonal> >
    Criterion;
  typedef Dune::SeqSSOR<BCRSMat,Vector,Vector> Smoother;
  typedef Dune::Amg::SmootherTraits<Smoother>::Arguments SmootherArgs;

  SmootherArgs smootherArgs;

  smootherArgs.iterations = 2;


  Criterion criterion(15,coarsenTarget);
  criterion.setMaxDistance(2);

  Dune::SeqScalarProduct<Vector> sp;
  typedef Dune::Amg::AMG<MHierarchy,Vector,Smoother> AMG;

  AMG amg(fop.getmat(), criterion, smootherArgs, 1, 1);

[[Imported from SVN: r410]]
parent f904d1bd
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment