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?

No, it's just an (interesting) bug. I have the fix here:
  https://github.com/dealii/dealii/pull/16225
Thanks for pointing it out and providing a good testcase!

Best
 W.

--
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/28af670a-d40b-4a33-9585-bea821f6a254%40colostate.edu.

Reply via email to