Class C{
...
Triangulation <1,2> boundary_triangulation;
FE_Q<1,2> boundary_fe;
DoFHandler <1,2> boundary_dof_handler;
MappingQGeneric <1,2> boundary_map;
... /
void run ();
}
void C::run(){
for (unsigned int cycle=0; cycle< ncycles; ++cycle) //works for ncycles=1, error for ncycles > 1
{
boundary_triangulation.create_triangulation (vertices, cells, SubCellData());// for every cycle I have here other vertices and cells to create
// a new triangulation
... //here I do some finite element calculation, it works
...
boundary_dof_handler.clear();
boundary_triangulation.clear();// Reset this triangulation into a virgin state by deleting all data. This operation is only allowed if no
//subscriptions to this object exist any more, such as DoFHandler objects using it
}
}
"You have a vertex in your triangulation " "at which more than two cells come together. "