Skip to content

Commit

Permalink
Correct a minor violation of coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
oneliefleft committed Aug 1, 2014
1 parent eaae70d commit e841391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/deal.II/lac/petsc_vector_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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)
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit e841391

Please sign in to comment.