Skip to content

Commit

Permalink
Merge pull request dealii#44 from oneliefleft/master
Browse files Browse the repository at this point in the history
Correct a minor violation of coding standards in Petsc wrappers
  • Loading branch information
guidokanschat committed Aug 1, 2014
2 parents eaae70d + acaf690 commit 04deb3f
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 (PetscInt i=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 04deb3f

Please sign in to comment.