1. petsc
  2. PETSc
  3. petsc

Commits

BarryFSmith  committed 1cced63

fix that was reported days ago but no one fixed.
When Matt converted DMDASetDimension() to DMSetDimension() he mistyped the provider of the dimension in one of the functions

  • Participants
  • Parent commits 22b0d44
  • Branches master

Comments (0)

Files changed (1)

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

View file
     DM da;
 
     ierr = DMDACreate(PetscObjectComm((PetscObject)dm), &da);CHKERRQ(ierr);
-    ierr = DMSetDimension(da, da->dim);CHKERRQ(ierr);
+    ierr = DMSetDimension(da, dm->dim);CHKERRQ(ierr);
     ierr = DMDASetSizes(da, dd->M, dd->N, dd->P);CHKERRQ(ierr);
     ierr = DMDASetNumProcs(da, dd->m, dd->n, dd->p);CHKERRQ(ierr);
     ierr = DMDASetBoundaryType(da, dd->bx, dd->by, dd->bz);CHKERRQ(ierr);