On Mon, Mar 19, 2012 at 2:11 AM, Mohammad Mohsenie <[email protected]> wrote:
> i need to call dofhandler cell iterator two times in code i.e. at first time 
> i called it and marked a specified cell and take some information from it 
> (GeometryInfo<dim>::vertices_per_cell) and after that i want to loop over 
> other cells and take some information from them 
> (GeometryInfo<dim>::distance_to_unit_cell(center) ) . how can i do that 
> without redeclaration error in dealii ?

You mean like

DoFHandler<2>::active_cell_iterator
  cell = dof_handler.begin_active(),
  endc = dof_handler.end();

for (; cell!=endc; ++cell)
  {
  // do something
  }

cell = dof_handler.begin_active();
for (; cell!=endc; ++cell)
  {
  // do something else.
  }

If not, please post the error message you got.

--
Timo Heister
http://www.math.tamu.edu/~heister/
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to