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