Common.hpp 920 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <dune/common/fmatrix.hh>
#include <dune/common/fvector.hh>
#include <dune/istl/bcrsmatrix.hh>
#include <dune/istl/bvector.hh>
#include <dune/istl/operators.hh>

#include <amdis/ProblemStatTraits.hpp>
#include <amdis/linearalgebra/istl/Traits.hpp>

namespace Dune
{
  // some default types used in explicit template instantiation
  namespace Precompiled
  {
    using Matrix
      = Dune::BCRSMatrix<Dune::FieldMatrix<double,1,1>>;

    using Vector
      = Dune::BlockVector<Dune::FieldVector<double,1>>;

    using LinOp
      = Dune::MatrixAdapter<Matrix, Vector, Vector>;
  }
}
Praetorius, Simon's avatar
Praetorius, Simon committed
27
28
29
30
31
32
33
34
35
36
37
38

namespace AMDiS
{
  namespace Precompiled
  {
    using BackendTraits = AMDiS::BackendTraits<typename AMDiS::YaspGridBasis<2,2>::GlobalBasis>;

    using SolverTraits = AMDiS::SolverTraits<
      typename BackendTraits::template MatrixImpl<double>,
      typename BackendTraits::template VectorImpl<double>>;
  }
}