Dear all, dealii::BlockSparseMatrix<double> systemMatrix; auto systemMatrixIteratorEnd = systemMatrix.end(0); auto systemMatrixIteratorBegin = systemMatrix.begin(0); if (systemMatrixIteratorBegin != systemMatrixIteratorEnd) std::cout<< "Example"<<std::endl;
Using deal.ii 9.4.0, this results in the compilation error include/deal.II/lac/matrix_iterator.h:184:20: error: ‘bool dealii::BlockMatrixIterators::Accessor<BlockMatrixType, false>::operator==(const dealii::BlockMatrixIterators::Accessor<BlockMatrixType, false>&) const [with BlockMatrixType = dealii::BlockMatrixBase<dealii::SparseMatrix<double> >]’ is protected within this context 184 | return (accessor == other.accessor); include/deal.II/lac/block_matrix_base.h:1475:3: note: declared protected here 1475 | Accessor<BlockMatrixType, false>::operator==(const Accessor &a) const Everything works if BlockSparseMatrix is replaced by SparseMatrix. Is there anything I miss here? Best Simon -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/b21d1915-c54a-4711-8b18-a8fa09d06a80n%40googlegroups.com.
