#490 test failure: dune-istl/istl/paamg/test/amgtest
Metadata
| Property | Value | 
|---|---|
| Reported by | Elias Pipping (elias.pipping@fu-berlin.de) | 
| Reported at | Jan 31, 2009 13:41 | 
| Type | Bug Report | 
| Version | Git (pre2.4) [autotools] | 
| Operating System | Linux 64bit | 
| Last edited by | Markus Blatt (markus@dr-blatt.de) | 
| Last edited at | Jan 31, 2009 15:08 | 
| Closed by | Markus Blatt (markus@dr-blatt.de) | 
| Closed at | Jan 31, 2009 15:08 | 
| Closed in version | Unknown | 
| Resolution | Fixed | 
| Comment | with revision 987 | 
Description
amgtest fails to compile:
pipping@treibsand ~/Desktop/dune-istl/istl/paamg/test $ make amgtest
g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../..  -I/home/pipping/Desktop/dune-common -I../../..    -g3 -O0 -fno-inline -MT amgtest-amgtest.o -MD -MP -MF .deps/amgtest-amgtest.Tpo -c -o amgtest-amgtest.o test -f 'amgtest.cc' || echo './'amgtest.cc
../../../dune/istl/paamg/aggregates.hh: In member function 'void Dune::Amg::Dependency<M, N>::initRow(const typename M::row_type&, int) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, N = Dune::Amg::FirstDiagonal]':
../../../dune/istl/paamg/aggregates.hh:1534:   instantiated from 'void Dune::Amg::Aggregator::buildDependency(G&, const typename C::Matrix&, C) [with C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>]'
../../../dune/istl/paamg/aggregates.hh:1958:   instantiated from 'Dune::tuple<int, int, int, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil> Dune::Amg::Aggregator::build(const M&, G&, Dune::Amg::AggregatesMap&, const C&) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>]'
../../../dune/istl/paamg/aggregates.hh:1938:   instantiated from 'Dune::tuple<int, int, int, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil> Dune::Amg::AggregatesMap::buildAggregates(const M&, G&, const C&) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>, C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, V = long unsigned int]'
../../../dune/istl/paamg/hierarchy.hh:610:   instantiated from 'void Dune::Amg::MatrixHierarchy<M, PI, A>::build(const T&) [with O = Dune::EmptySet, T = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, M = Dune::MatrixAdapter<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >, PI = Dune::Amg::SequentialInformation, A = std::allocator<Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >]'
../../../dune/istl/paamg/amg.hh:213:   instantiated from 'Dune::Amg::AMG<M, X, S, PI, A>::AMG(const M&, const C&, const typename Dune::Amg::SmootherTraits::Arguments&, size_t, size_t, size_t, bool, const P&) [with C = testAMG(int, int, int) [with int BS = 2]::Criterion, M = Dune::MatrixAdapter<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >, X = Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, S = Dune::SeqSOR<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, 1>, PI = Dune::Amg::SequentialInformation, A = std::allocator<Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >]'
amgtest.cc:98:   instantiated from 'void testAMG(int, int, int) [with int BS = 2]'
amgtest.cc:143:   instantiated from here
../../../dune/istl/paamg/aggregates.hh:1257: error: cannot convert 'const Dune::FieldMatrix<double, 2, 2>' to 'double' in assignment
../../../dune/istl/paamg/aggregates.hh: In member function 'void Dune::Amg::Dependency<M, N>::examine(const typename M::ConstColIterator&) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, N = Dune::Amg::FirstDiagonal]':
../../../dune/istl/paamg/aggregates.hh:1542:   instantiated from 'void Dune::Amg::Aggregator::buildDependency(G&, const typename C::Matrix&, C) [with C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>]'
../../../dune/istl/paamg/aggregates.hh:1958:   instantiated from 'Dune::tuple<int, int, int, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil> Dune::Amg::Aggregator::build(const M&, G&, Dune::Amg::AggregatesMap&, const C&) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>]'
../../../dune/istl/paamg/aggregates.hh:1938:   instantiated from 'Dune::tuple<int, int, int, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil> Dune::Amg::AggregatesMap::buildAggregates(const M&, G&, const C&) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>, C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, V = long unsigned int]'
../../../dune/istl/paamg/hierarchy.hh:610:   instantiated from 'void Dune::Amg::MatrixHierarchy<M, PI, A>::build(const T&) [with O = Dune::EmptySet, T = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, M = Dune::MatrixAdapter<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >, PI = Dune::Amg::SequentialInformation, A = std::allocator<Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >]'
../../../dune/istl/paamg/amg.hh:213:   instantiated from 'Dune::Amg::AMG<M, X, S, PI, A>::AMG(const M&, const C&, const typename Dune::Amg::SmootherTraits::Arguments&, size_t, size_t, size_t, bool, const P&) [with C = testAMG(int, int, int) [with int BS = 2]::Criterion, M = Dune::MatrixAdapter<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >, X = Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, S = Dune::SeqSOR<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, 1>, PI = Dune::Amg::SequentialInformation, A = std::allocator<Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >]'
amgtest.cc:98:   instantiated from 'void testAMG(int, int, int) [with int BS = 2]'
amgtest.cc:143:   instantiated from here
../../../dune/istl/paamg/aggregates.hh:1263: error: no match for 'operator-' in '-((const Dune::BidirectionalIteratorFacade<Dune::compressed_base_array_unmanaged<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>::RealIterator<const Dune::FieldMatrix<double, 2, 2> >, const Dune::FieldMatrix<double, 2, 2>, const Dune::FieldMatrix<double, 2, 2>&, long int>*)((const Dune::compressed_base_array_unmanaged<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>::RealIterator<const Dune::FieldMatrix<double, 2, 2> >*)col))->Dune::BidirectionalIteratorFacade<T, V, R, D>::operator* with T = Dune::compressed_base_array_unmanaged<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>::RealIterator<const Dune::FieldMatrix<double, 2, 2> >, V = const Dune::FieldMatrix<double, 2, 2>, R = const Dune::FieldMatrix<double, 2, 2>&, D = long int'
../../../dune/istl/paamg/aggregates.hh: In member function 'void Dune::Amg::Dependency<M, N>::examine(G&, const typename G::EdgeIterator&, const typename M::ConstColIterator&) [with G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>, M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, N = Dune::Amg::FirstDiagonal]':
../../../dune/istl/paamg/aggregates.hh:1562:   instantiated from 'void Dune::Amg::Aggregator::buildDependency(G&, const typename C::Matrix&, C) [with C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>]'
../../../dune/istl/paamg/aggregates.hh:1958:   instantiated from 'Dune::tuple<int, int, int, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil> Dune::Amg::Aggregator::build(const M&, G&, Dune::Amg::AggregatesMap&, const C&) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>]'
../../../dune/istl/paamg/aggregates.hh:1938:   instantiated from 'Dune::tuple<int, int, int, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil, Dune::Nil> Dune::Amg::AggregatesMap::buildAggregates(const M&, G&, const C&) [with M = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, G = Dune::Amg::PropertiesGraph<Dune::Amg::MatrixGraph<const Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator> >, Dune::Amg::VertexProperties, Dune::Amg::EdgeProperties, Dune::IdentityMap, Dune::IdentityMap>, C = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, V = long unsigned int]'
../../../dune/istl/paamg/hierarchy.hh:610:   instantiated from 'void Dune::Amg::MatrixHierarchy<M, PI, A>::build(const T&) [with O = Dune::EmptySet, T = Dune::Amg::CoarsenCriterion<Dune::Amg::UnSymmetricCriterion<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::Amg::FirstDiagonal> >, M = Dune::MatrixAdapter<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >, PI = Dune::Amg::SequentialInformation, A = std::allocator<Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >]'
../../../dune/istl/paamg/amg.hh:213:   instantiated from 'Dune::Amg::AMG<M, X, S, PI, A>::AMG(const M&, const C&, const typename Dune::Amg::SmootherTraits::Arguments&, size_t, size_t, size_t, bool, const P&) [with C = testAMG(int, int, int) [with int BS = 2]::Criterion, M = Dune::MatrixAdapter<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >, X = Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, S = Dune::SeqSOR<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator>, 1>, PI = Dune::Amg::SequentialInformation, A = std::allocator<Dune::BlockVector<Dune::FieldVector<double, 2>, Dune::ISTLAllocator> >]'
amgtest.cc:98:   instantiated from 'void testAMG(int, int, int) [with int BS = 2]'
amgtest.cc:143:   instantiated from here
../../../dune/istl/paamg/aggregates.hh:1271: error: no match for 'operator-' in '-((const Dune::BidirectionalIteratorFacade<Dune::compressed_base_array_unmanaged<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>::RealIterator<const Dune::FieldMatrix<double, 2, 2> >, const Dune::FieldMatrix<double, 2, 2>, const Dune::FieldMatrix<double, 2, 2>&, long int>*)((const Dune::compressed_base_array_unmanaged<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>::RealIterator<const Dune::FieldMatrix<double, 2, 2> >*)col))->Dune::BidirectionalIteratorFacade<T, V, R, D>::operator* with T = Dune::compressed_base_array_unmanaged<Dune::FieldMatrix<double, 2, 2>, Dune::ISTLAllocator>::RealIterator<const Dune::FieldMatrix<double, 2, 2> >, V = const Dune::FieldMatrix<double, 2, 2>, R = const Dune::FieldMatrix<double, 2, 2>&, D = long int'
make: *** [amgtest-amgtest.o] Error 1