Thank you for this tip. For my need, I only require the starting global index on each partition since I am using local_element to do some operations like multiplying by a local time step which is different for each cell. The local_range function gave this info. Here is a sample usage in my code
for (; cell!=endc; ++cell) if(cell->is_locally_owned()) { const unsigned int cell_no = cell_number (cell); cell->get_dof_indices (dof_indices); for(unsigned int i=0; i<fe.dofs_per_cell; ++i) { unsigned int i_loc = dof_indices[i] - local_range.first; newton_update.local_element(i_loc) = dt(cell_no) * right_hand_side.local_element(i_loc) * inv_mass_matrix[cell_no][i]; } } If there is a possibility, I would like to request to retain this simple function in the library. Thanks praveen > On 01-Feb-2019, at 7:02 PM, Bruno Turcksin <bruno.turck...@gmail.com> wrote: > > Praveen, > > You can get the locally only owned IndexSet > https://dealii.org/developer/doxygen/deal.II/classLinearAlgebra_1_1distributed_1_1Vector.html#aff5265a5af79342c77ac50d584c9d3e4 > > <https://dealii.org/developer/doxygen/deal.II/classLinearAlgebra_1_1distributed_1_1Vector.html#aff5265a5af79342c77ac50d584c9d3e4> > and ask for the iterator > https://dealii.org/developer/doxygen/deal.II/classIndexSet.html#a19e94d1f725d250e3166316995e2797f > > <https://dealii.org/developer/doxygen/deal.II/classIndexSet.html#a19e94d1f725d250e3166316995e2797f> > > Best, > > Bruno -- 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.