Skip to content
Snippets Groups Projects
Commit af60ee0a authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Reduce number of warnings, especially unused typedefs.

parent f8a19fb0
No related branches found
No related tags found
No related merge requests found
......@@ -118,9 +118,6 @@ void testCoarsenIndices(int N)
Dune::Amg::GalerkinProduct<ParallelInformation> productBuilder;
typedef std::vector<bool> Vector;
typedef typename Vector::iterator Iterator;
//typedef Dune::IteratorPropertyMap<Iterator, Dune::IdentityMap> VisitedMap2;
typedef Dune::IteratorPropertyMap<bool*, Dune::IdentityMap> VisitedMap2;
/*
Vector visited;
......
......@@ -85,7 +85,6 @@ void testAmg(int N, int coarsenTarget)
typedef Dune::BCRSMatrix<MatrixBlock> BCRSMat;
typedef Dune::FieldVector<double,BS> VectorBlock;
typedef Dune::BlockVector<VectorBlock> Vector;
typedef int LocalId;
typedef int GlobalId;
typedef Dune::OwnerOverlapCopyCommunication<GlobalId> Communication;
typedef Dune::OverlappingSchwarzOperator<BCRSMat,Vector,Vector,Communication> Operator;
......
......@@ -9,6 +9,7 @@
#include <dune/common/fmatrix.hh>
#include <dune/common/diagonalmatrix.hh>
#include <dune/common/unused.hh>
#include <dune/istl/bcrsmatrix.hh>
#include <dune/istl/matrix.hh>
#include <dune/istl/bdmatrix.hh>
......@@ -40,7 +41,7 @@ void testSuperMatrix(MatrixType& matrix)
typedef typename MatrixType::size_type size_type;
typedef typename MatrixType::allocator_type allocator_type;
typedef typename MatrixType::allocator_type allocator_type DUNE_UNUSED;
size_type n = matrix.N();
size_type m = matrix.M();
......@@ -62,19 +63,19 @@ void testMatrix(MatrixType& matrix, X& x, Y& y)
typedef typename FieldTraits<field_type>::real_type real_type;
typedef typename MatrixType::block_type block_type;
typedef typename MatrixType::block_type block_type DUNE_UNUSED;
typedef typename MatrixType::row_type row_type;
typedef typename MatrixType::row_type row_type DUNE_UNUSED;
typedef typename MatrixType::size_type size_type;
typedef typename MatrixType::RowIterator RowIterator;
typedef typename MatrixType::RowIterator RowIterator DUNE_UNUSED;
typedef typename MatrixType::ConstRowIterator ConstRowIterator;
typedef typename MatrixType::ConstRowIterator ConstRowIterator DUNE_UNUSED;
typedef typename MatrixType::ColIterator ColIterator;
typedef typename MatrixType::ColIterator ColIterator DUNE_UNUSED;
typedef typename MatrixType::ConstColIterator ConstColIterator;
typedef typename MatrixType::ConstColIterator ConstColIterator DUNE_UNUSED;
assert(MatrixType::blocklevel >= 0);
......
......@@ -17,8 +17,6 @@ using namespace Dune;
template<class K, int n>
void test_matrix()
{
typedef typename ScaledIdentityMatrix<K,n>::size_type size_type;
ScaledIdentityMatrix<K,n> A(1);
FieldVector<K,n> f;
FieldVector<K,n> v;
......
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