Lines Matching refs:invJ

477   PetscReal    *xi, *v0, *J, *invJ, detJ = 1.0, v0ref[3] = {-1.0, -1.0, -1.0};  in DMSwarmComputeMassMatrix_Private()  local
490 PetscCall(PetscMalloc3(dim, &v0, dim * dim, &J, dim * dim, &invJ)); in DMSwarmComputeMassMatrix_Private()
595 PetscCall(DMPlexComputeCellGeometryFEM(dmf, cell, NULL, v0, J, invJ, &detJ)); in DMSwarmComputeMassMatrix_Private()
606 CoordinatesRealToRef(dim, dim, v0ref, v0, invJ, xr, &xi[j * dim]); in DMSwarmComputeMassMatrix_Private()
634 PetscCall(PetscFree3(v0, J, invJ)); in DMSwarmComputeMassMatrix_Private()
700 PetscReal *xi, *v0, *J, *invJ, detJ = 1.0, v0ref[3] = {-1.0, -1.0, -1.0}; in DMSwarmComputeMassMatrixSquare_Private() local
713 PetscCall(PetscMalloc3(cdim, &v0, cdim * cdim, &J, cdim * cdim, &invJ)); in DMSwarmComputeMassMatrixSquare_Private()
821 PetscCall(DMPlexComputeCellGeometryFEM(dmf, cell, NULL, v0, J, invJ, &detJ)); in DMSwarmComputeMassMatrixSquare_Private()
832 CoordinatesRealToRef(cdim, cdim, v0ref, v0, invJ, xr, &xi[p * cdim]); in DMSwarmComputeMassMatrixSquare_Private()
867 PetscCall(PetscFree3(v0, J, invJ)); in DMSwarmComputeMassMatrixSquare_Private()
951 PetscReal *xi, *v0, *J, *invJ, detJ = 1.0, v0ref[3] = {-1.0, -1.0, -1.0}; in DMSwarmComputeGradientMatrix_Private() local
965 PetscCall(PetscMalloc3(cdim, &v0, cdim * cdim, &J, cdim * cdim, &invJ)); in DMSwarmComputeGradientMatrix_Private()
1021 PetscCall(DMPlexComputeCellGeometryFEM(dm, cell, NULL, v0, J, invJ, &detJ)); in DMSwarmComputeGradientMatrix_Private()
1032 CoordinatesRealToRef(cdim, cdim, v0ref, v0, invJ, xr, &xi[j * cdim]); in DMSwarmComputeGradientMatrix_Private()
1042 …for (PetscInt e = 0; e < cdim; ++e) xi[d] += invJ[e * cdim + d] * Tcoarse->T[1][(j * numFIndices +… in DMSwarmComputeGradientMatrix_Private()
1059 PetscCall(PetscFree3(v0, J, invJ)); in DMSwarmComputeGradientMatrix_Private()
2213 PetscReal *centroid, *coords, *xi0, *v0, *J, *invJ, detJ; in DMSwarmSetPointCoordinatesRandom() local
2231 PetscCall(PetscMalloc5(dim, &centroid, dim, &xi0, dim, &v0, dim * dim, &J, dim * dim, &invJ)); in DMSwarmSetPointCoordinatesRandom()
2239 PetscCall(DMPlexComputeCellGeometryFEM(cdm, c, NULL, v0, J, invJ, &detJ)); /* affine */ in DMSwarmSetPointCoordinatesRandom()
2255 PetscCall(PetscFree5(centroid, xi0, v0, J, invJ)); in DMSwarmSetPointCoordinatesRandom()