Commit 409fdb34 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

small corrections in MatrixView

parent 3d4c1fc6
......@@ -126,10 +126,10 @@ namespace MatVec {
return C;
}
template <class T, int N>
class MatrixView<DiagonalMatrix<T,N>>
template <class T, int SIZE>
class MatrixView<DiagonalMatrix<T,SIZE>>
{
using Matrix = DiagonalMatrix<T,N>;
using Matrix = DiagonalMatrix<T,SIZE>;
using size_type = typename Matrix::size_type;
struct RowView
......@@ -145,7 +145,7 @@ namespace MatVec {
};
public:
MatrixView(DiagonalMatrix<T,N> const& mat)
MatrixView(Matrix const& mat)
: mat_(mat)
{}
......@@ -166,7 +166,7 @@ namespace MatVec {
}
private:
DiagonalMatrix<T,N> const& mat_;
Matrix const& mat_;
};
} // end namespace MatVec
......
......@@ -69,7 +69,7 @@ namespace AMDiS
// The transposed inverse Jacobian of the map from the reference element to the element
const auto jacobian = contextGeo.geometry().jacobianInverseTransposed(local);
auto&& jacobian_mat = as_matrix(jacobian);
auto&& jacobian_mat = Dune::MatVec::as_matrix(jacobian);
assert(jacobian.M() == CG::dim);
// The multiplicative factor in the integral transformation formula
......
......@@ -67,7 +67,7 @@ namespace AMDiS
// The transposed inverse Jacobian of the map from the reference element to the element
const auto jacobian = contextGeo.geometry().jacobianInverseTransposed(local);
auto&& jacobian_mat = as_matrix(jacobian);
auto&& jacobian_mat = Dune::MatVec::as_matrix(jacobian);
// The multiplicative factor in the integral transformation formula
const auto factor = contextGeo.integrationElement(quad[iq].position()) * quad[iq].weight();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment