Commits

Satish Balay committed ee6bbdb

DMPlex: one more win32/complex fix

  • Participants
  • Parent commits 88339cc

Comments (0)

Files changed (1)

src/dm/impls/plex/plexgeometry.c

     csum[d] /= (tdim+1)*vsum;
   }
   ierr = DMPlexVecRestoreClosure(dm, coordSection, coordinates, cell, &coordSize, &coords);CHKERRQ(ierr);
-  if (vol) *vol = PetscAbsScalar(vsum);
+  if (vol) *vol = PetscAbsReal(vsum);
   if (centroid) {
     if (dim > 2) {
       for (d = 0; d < dim; ++d) {