From: oneliefleft Date: Fri, 1 Aug 2014 01:35:15 +0000 (+0000) Subject: Correct a minor violation of coding standards. X-Git-Tag: v8.2.0-rc1~237^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8413910f64b07132603d2b7e14bd6f28b5f8306;p=dealii.git Correct a minor violation of coding standards. --- diff --git a/include/deal.II/lac/petsc_vector_base.h b/include/deal.II/lac/petsc_vector_base.h index 403a8ec8eb..90e73b02e1 100644 --- a/include/deal.II/lac/petsc_vector_base.h +++ b/include/deal.II/lac/petsc_vector_base.h @@ -1282,7 +1282,7 @@ namespace PETScWrappers // ghost elements whose // position we can get from // an index set - PetscInt begin, end, i; + PetscInt begin, end; ierr = VecGetOwnershipRange (vector, &begin, &end); AssertThrow (ierr == 0, ExcPETScError(ierr)); @@ -1298,7 +1298,7 @@ namespace PETScWrappers ierr = VecGetArray(locally_stored_elements, &ptr); AssertThrow (ierr == 0, ExcPETScError(ierr)); - for (i = 0; i < n_idx; i++) + for (PetscInti=0; i=static_cast(begin) @@ -1340,7 +1340,7 @@ namespace PETScWrappers ierr = VecGetArray(vector, &ptr); AssertThrow (ierr == 0, ExcPETScError(ierr)); - for (PetscInt i = 0; i < n_idx; i++) + for (PetscInt i=0; i