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
using DataOut
<https://www.dealii.org/current/doxygen/deal.II/classDataOut.html>< dim,
DoFHandlerType >::cell_iterator
<https://www.dealii.org/current/doxygen/deal.II/classDataOut.html#a501c6b6a2ac9210e9f5742898908183c>
= typename DataOut_DoFData
<https://www.dealii.org/current/doxygen/deal.II/classDataOut__DoFData.html><DoFHandlerType,
DoFHandlerType::dimension, DoFHandlerType::space_dimension>::cell_iterator
<https://www.dealii.org/current/doxygen/deal.II/classDataOut.html#a501c6b6a2ac9210e9f5742898908183c>
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.
--
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/04bfe42c-697f-4fbe-88b3-ea7a5bef297an%40googlegroups.com.