, communicator(v.communicator)
{
if (v.has_ghost_elements())
- Vector::create_vector(v.size(), v.local_size(), v.ghost_indices);
+ Vector::create_vector(v.size(),
+ v.locally_owned_size(),
+ v.ghost_indices);
else
- Vector::create_vector(v.size(), v.local_size());
+ Vector::create_vector(v.size(), v.locally_owned_size());
this->operator=(v);
}
if (v.has_ghost_elements())
reinit(v.locally_owned_elements(), v.ghost_indices, v.communicator);
else
- reinit(v.communicator, v.size(), v.local_size(), true);
+ reinit(v.communicator, v.size(), v.locally_owned_size(), true);
}
PetscErrorCode ierr = VecCopy(v.vector, vector);
// only do something if the sizes
// mismatch (may not be true for every proc)
- int k_global, k = ((size() != n) || (local_size() != local_sz));
+ int k_global, k = ((size() != n) || (locally_owned_size() != local_sz));
{
const int ierr =
MPI_Allreduce(&k, &k_global, 1, MPI_INT, MPI_LOR, communicator);
}
}
else
- reinit(v.communicator, v.size(), v.local_size(), omit_zeroing_entries);
+ reinit(v.communicator,
+ v.size(),
+ v.locally_owned_size(),
+ omit_zeroing_entries);
}
PetscErrorCode ierr = VecGetArray(vector, &start_ptr);
AssertThrow(ierr == 0, ExcPETScError(ierr));
- const PetscScalar *ptr = start_ptr, *eptr = start_ptr + local_size();
- bool flag = true;
+ const PetscScalar *ptr = start_ptr,
+ *eptr = start_ptr + locally_owned_size();
+ bool flag = true;
while (ptr != eptr)
{
if (*ptr != value_type())
PetscErrorCode ierr = VecGetArray(vector, &start_ptr);
AssertThrow(ierr == 0, ExcPETScError(ierr));
- const PetscScalar *ptr = start_ptr, *eptr = start_ptr + local_size();
- bool flag = true;
+ const PetscScalar *ptr = start_ptr,
+ *eptr = start_ptr + locally_owned_size();
+ bool flag = true;
while (ptr != eptr)
{
if (!internal::is_non_negative(*ptr))