My program uses Parallel::distributed::triangulation.
If I want to output a data array associated with cell, which one of the
following is the correct way of doing it ? And why ?
(This cell data type vector is to be viewed in Paraview.)
|
intindex =0
for(;cell!=endc,++cell,++index)
if(cell->is_locally_owned)
data_array(index)=value;
|
or
|
for(;cell!=endc,++cell)
if(cell->is_locally_owned())
data_array(cell->active_cell_index())=value;
|
Both will work. They are identical.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.