Hi Markus,

Great, thank you.  I will have a think about which method would be best in this 
case.

Best wishes,

Katie
________________________________________
From: [email protected] [[email protected]] On Behalf Of Markus 
Bürg [[email protected]]
Sent: 04 July 2011 21:08
To: [email protected]
Subject: Re: [deal.II] Adding spatial adaptivity to Step-21

Hello Katie,

the message "ExcAssignmentOfInactiveObject ()" tells you that the
neighbor cell->neighbor (face_no) is not active. This means that the
neighbor is refined once more than the cell you are sitting on. To solve
this issue you have two possibilities: The first one ist to use a
cell_iterator instead of an active_cell_iterator to store the object.
The second one is to iterate over all children of face face_no and
access the neighbors with the function neighbor_child_on_subface. Which
one is the right choice depends on what you want to do with the neighbor
cell.

Best Regards,
Markus



Am 04.07.11 21:42, schrieb Katie Leonard:
>
> Hi,
>
> The line that is causing the error is
>
> const typename DoFHandler<dim>::active_cell_iterator neighbor = 
> cell->neighbor(face_no)
>
>
> after the first refinement of the grid.  Its called in the structure:
>
> if (cell->at_boundary(face_no))
> {
> }
> else
> {
>     const typename DoFHandler<dim>::active_cell_iterator neighbor = 
> cell->neighbor(face_no);
> }
>
> I don't really understand what the message "ExcAssignmentOfInactiveObject()" 
> means, and how I should go about solving this error.  I hope that makes 
> sense.  Do let me know if you require further information.
>
> Many thanks,
>
> Katie
>
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to