Lines Matching refs:cdim
368 PetscInt label_value = 0, height = 1, Nf, cdim; in DMPlexCeedComputeGeometryFVM() local
374 PetscCall(DMGetCoordinateDim(dm, &cdim)); in DMPlexCeedComputeGeometryFVM()
400 for (PetscInt d = 0; d < cdim; ++d) qdata[off + d] *= area; in DMPlexCeedComputeGeometryFVM()
401 off += cdim; in DMPlexCeedComputeGeometryFVM()
412 for (PetscInt d = 0; d < cdim; ++d) centroids[s][d] = fcentroid[d]; in DMPlexCeedComputeGeometryFVM()
416 CeedScalar *normal = &qdata[off - cdim]; in DMPlexCeedComputeGeometryFVM()
419 PetscCall(DMLocalizeCoordinateReal_Internal(dm, cdim, fcentroid, centroids[0], l)); in DMPlexCeedComputeGeometryFVM()
420 PetscCall(DMLocalizeCoordinateReal_Internal(dm, cdim, fcentroid, centroids[1], r)); in DMPlexCeedComputeGeometryFVM()
421 DMPlex_WaxpyD_Internal(cdim, -1, l, r, v); in DMPlexCeedComputeGeometryFVM()
422 if (DMPlex_DotRealD_Internal(cdim, normal, v) < 0) { in DMPlexCeedComputeGeometryFVM()
423 for (PetscInt d = 0; d < cdim; ++d) normal[d] = -normal[d]; in DMPlexCeedComputeGeometryFVM()
425 if (DMPlex_DotRealD_Internal(cdim, normal, v) <= 0) { in DMPlexCeedComputeGeometryFVM()
426 …PetscCheck(cdim != 2, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Direction for face %" PetscInt_FMT " could… in DMPlexCeedComputeGeometryFVM()
427 …PetscCheck(cdim != 3, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Direction for face %" PetscInt_FMT " could… in DMPlexCeedComputeGeometryFVM()