From: wolf Date: Fri, 16 Apr 2004 20:54:32 +0000 (+0000) Subject: Indent properly. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45196abcadfd06ca1017302097310f79fa147a63;p=dealii-svn.git Indent properly. git-svn-id: https://svn.dealii.org/trunk@9032 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/petsc_parallel_vector.cc b/deal.II/lac/source/petsc_parallel_vector.cc index 6524a40fc2..cc3fbf8019 100644 --- a/deal.II/lac/source/petsc_parallel_vector.cc +++ b/deal.II/lac/source/petsc_parallel_vector.cc @@ -113,27 +113,31 @@ namespace PETScWrappers Vector & Vector::operator = (const PETScWrappers::Vector &v) { - // first flush buffers + // first flush buffers compress (); int ierr; - // get a pointer to the local memory of this vector + // get a pointer to the local memory of + // this vector PetscScalar *dest_array; ierr = VecGetArray (vector, &dest_array); AssertThrow (ierr == 0, ExcPETScError(ierr)); - // then also a pointer to the source vector + // then also a pointer to the source + // vector PetscScalar *src_array; ierr = VecGetArray (static_cast(v), &src_array); AssertThrow (ierr == 0, ExcPETScError(ierr)); - // then copy: - const std::pair local_elements = local_range (); - std::copy (src_array + local_elements.first, src_array + local_elements.second, + // then copy: + const std::pair + local_elements = local_range (); + std::copy (src_array + local_elements.first, + src_array + local_elements.second, dest_array); - // finally restore the arrays + // finally restore the arrays ierr = VecRestoreArray (vector, &dest_array); AssertThrow (ierr == 0, ExcPETScError(ierr)); @@ -165,5 +169,5 @@ namespace PETScWrappers #else // On gcc2.95 on Alpha OSF1, the native assembler does not like empty // files, so provide some dummy code - namespace { void dummy () {} } +namespace { void dummy () {} } #endif // DEAL_II_USE_PETSC