Commits

Peter Brune committed 3f2d3b5

Fix for mixed declarations and code in DMCreateCoordinateDM_DA().

Pointed out by Satish.

  • Participants
  • Parent commits a904233

Comments (0)

Files changed (1)

File src/dm/impls/da/dacorn.c

 PetscErrorCode DMCreateCoordinateDM_DA(DM dm, DM *cdm)
 {
   PetscErrorCode ierr;
-  PetscFunctionBegin;
   DM_DA          *da = (DM_DA*) dm->data;
+  PetscFunctionBegin;
   ierr = DMDAGetReducedDMDA(dm,da->dim,cdm);CHKERRQ(ierr);
   PetscFunctionReturn(0);
 }