Hi all,
Once again perplexed by the c++ compiler. I am getting the following error when trying to compile a program from the code gallery.
prog1.cc:In instantiation of ‘typename dealii::DataOut<dim, DoFHandlerType>::cell_iterator Prog1::FilteredDataOut<dim, DH>::first_cell() [with int dim = 3; DH = dealii::DoFHandler<3, 3>; typename dealii::DataOut<dim, DoFHandlerType>::cell_iterator = dealii::TriaIterator<dealii::CellAccessor<3, 3> >]’:
prog1.cc:2668:5: required from here
prog1.cc:2670:54: error: no type named ‘active_cell_iterator’ in ‘class dealii::DataOut<3, dealii::DoFHandler<3, 3> >’
typename DataOut<dim, DH>::active_cell_iterator cell = this->dofs->begin_active();
^~~~
prog1.cc:2670:54: error: no type named ‘active_cell_iterator’ in ‘class dealii::DataOut<3, dealii::DoFHandler<3, 3> >’
prog1.cc: In instantiation of ‘typename dealii::DataOut<dim, DoFHandlerType>::cell_iterator Cartilage::FilteredDataOut<dim, DH>::next_cell(const typename dealii::DataOut<dim, DoFHandlerType>::cell_iterator&) [with int dim = 3; DH = dealii::DoFHandler<3, 3>; typename dealii::DataOut<dim, DoFHandlerType>::cell_iterator = dealii::TriaIterator<dealii::CellAccessor<3, 3> >]’:
prog1.cc:2678:5: required from here
prog1.cc:2684:10: error: no type named ‘active_cell_iterator’ in ‘class dealii::DataOut<3, dealii::DoFHandler<3, 3> >’
++(FilteredIterator<typename DataOut<dim, DH>::active_cell_iterator>
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(predicate,old_cell));
Looking in the manual I see the following which makes me think the code should work
Should I just change active_cell_iterator to cell_iterator? I am worried that they wont work the same creating problems downstream.
Thanks in advance.