Commits

Vijay Mahadevan committed 5bf66d9

Fixed a possible bug when restoring array.

Comments (0)

Files changed (1)

src/dm/impls/moab/dmmbvec.cxx

   /* reduce the tags correctly -> should probably let the user choose how to reduce in the future
      For all FEM residual based assembly calculations, MPI_SUM should serve well
   */
-  merr = moab->pcomm->reduce_tags(vtag,MPI_SUM,*moab->vghost);MBERRNM(merr);
+  merr = moab->pcomm->reduce_tags(vtag,MPI_SUM,*moab->vlocal);MBERRNM(merr);
   PetscFunctionReturn(0);
 }