I get the following error if I call cell iterator from dinfo1
^
In file included from
/Users/Sudarshan/Dropbox/ALWDG_code/2d_scalar_unsteady_legendre/dg.cc:26:
In file included from
/Applications/deal.II.app/Contents/Resources/include/deal.II/grid/tria.h:3631:
In file included from
/Applications/deal.II.app/Contents/Resources/include/deal.II/grid/tria_accessor.h:3189:
In file included from
/Applications/deal.II.app/Contents/Resources/include/deal.II/grid/tria_accessor.templates.h:26:
/Applications/deal.II.app/Contents/Resources/include/deal.II/grid/tria_iterator.h:891:3:
error: no matching constructor for
initialization of 'dealii::DoFCellAccessor<dealii::DoFHandler<2, 2>,
false>'
accessor (a)
^ ~
/Applications/deal.II.app/Contents/Resources/include/deal.II/grid/tria_iterator.h:1090:3:
note: in instantiation of function
template specialization
'dealii::TriaRawIterator<dealii::DoFCellAccessor<dealii::DoFHandler<2, 2>,
false>
>::TriaRawIterator<dealii::CellAccessor<2, 2> >' requested here
TriaRawIterator<Accessor> (i.accessor)
^
/Users/Sudarshan/Dropbox/ALWDG_code/2d_scalar_unsteady_legendre/dg.cc:669:54:
note: in instantiation of function template
specialization
'dealii::TriaIterator<dealii::DoFCellAccessor<dealii::DoFHandler<2, 2>,
false>
>::TriaIterator<dealii::CellAccessor<2, 2> >' requested here
typename DoFHandler<dim>::cell_iterator cell=dinfo1.cell;
^
/Users/Sudarshan/Dropbox/ALWDG_code/2d_scalar_unsteady_legendre/dg.cc:572:22:
note: in instantiation of member function
'Step12<2>::integrate_face_term' requested here
&Step12<dim>::integrate_face_term,
On Monday, November 7, 2016 at 7:03:13 AM UTC-3, Daniel Arndt wrote:
>
> Sudarshan,
>
>
> In the following function I need to get the cell iterator of the
> corresponding cell.
>
> void Step12<dim>::integrate_face_term (DoFInfo& dinfo1, DoFInfo& dinfo2,
> { CellInfo&
> info1, CellInfo& info2)
>
> typename DoFHandler<dim>::cell_iterator cell=dinfo1.cell; // this
> does not work,
> }
>
> Could any one help please?
>
> This looks good. What exactly does not work as expected?
>
> Best,
> Daniel
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.