> On 02-Feb-2019, at 8:41 PM, Wolfgang Bangerth <[email protected]> wrote:
> 
> No :-) The reason why it was scheduled for removal is that it only works in 
> case the locally owned range is really just a single interval. But that's not 
> always the case. For example, you may have reordered degrees of freedom in 
> ways so that the locally owned elements form several ranges. The existing 
> function can't express this, but the new one can.
> 
> If you just need the first element, use
>   *vector.locally_owned_elements().begin()
> 
> Best
>  W.

Thanks. If I dont do any reordering then, continuous nature holds, right ? Does 
this hold even after a grid refinement ?

I can create this info myself

   // First global index on this partition
   AssertThrow(newton_update.locally_owned_elements().is_contiguous(),
               ExcMessage("Indices not contiguous"));
   local_range.first = *newton_update.locally_owned_elements().begin();
   local_range.second = local_range.first + newton_update.local_size();

Best
praveen

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to