]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Correct a minor violation of coding standards.
authoroneliefleft <oneliefleft@gmail.com>
Fri, 1 Aug 2014 01:35:15 +0000 (01:35 +0000)
committeroneliefleft <oneliefleft@gmail.com>
Fri, 1 Aug 2014 01:35:15 +0000 (01:35 +0000)
include/deal.II/lac/petsc_vector_base.h

index 403a8ec8eb9401245f3e759199bc75f5408d3425..90e73b02e198e2c929b53d04e8db0f57b40d2a7f 100644 (file)
@@ -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<n_idx; ++i)
           {
             const unsigned int index = *(indices_begin+i);
             if ( index>=static_cast<unsigned int>(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<n_idx; ++i)
           {
             const unsigned int index = *(indices_begin+i);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.