Lines Matching refs:xi
401 PetscReal xi[4]; in DMInterpolate_Triangle_Private() local
412 xi[d] = 0.0; in DMInterpolate_Triangle_Private()
413 …for (PetscInt f = 0; f < ctx->dim; ++f) xi[d] += invJ[d * ctx->dim + f] * 0.5 * PetscRealPart(coor… in DMInterpolate_Triangle_Private()
414 …* ctx->dof + comp] += PetscRealPart(x[(d + 1) * ctx->dof + comp] - x[0 * ctx->dof + comp]) * xi[d]; in DMInterpolate_Triangle_Private()
431 PetscReal xi[4]; in DMInterpolate_Tetrahedron_Private() local
442 xi[d] = 0.0; in DMInterpolate_Tetrahedron_Private()
443 …for (PetscInt f = 0; f < ctx->dim; ++f) xi[d] += invJ[d * ctx->dim + f] * 0.5 * PetscRealPart(coor… in DMInterpolate_Tetrahedron_Private()
444 … ctx->dof + comp] += PetscRealPart(x[order[d] * ctx->dof + comp] - x[0 * ctx->dof + comp]) * xi[d]; in DMInterpolate_Tetrahedron_Private()
543 PetscScalar *xi; in DMInterpolate_Quad_Private() local
586 PetscCall(VecGetArray(real, &xi)); in DMInterpolate_Quad_Private()
587 xi[0] = coords[p * ctx->dim + 0]; in DMInterpolate_Quad_Private()
588 xi[1] = coords[p * ctx->dim + 1]; in DMInterpolate_Quad_Private()
589 PetscCall(VecRestoreArray(real, &xi)); in DMInterpolate_Quad_Private()
591 PetscCall(VecGetArray(ref, &xi)); in DMInterpolate_Quad_Private()
592 xir[0] = PetscRealPart(xi[0]); in DMInterpolate_Quad_Private()
593 xir[1] = PetscRealPart(xi[1]); in DMInterpolate_Quad_Private()
608 PetscCall(VecRestoreArray(ref, &xi)); in DMInterpolate_Quad_Private()
773 PetscScalar *xi; in DMInterpolate_Hex_Private() local
806 PetscCall(VecGetArray(real, &xi)); in DMInterpolate_Hex_Private()
807 xi[0] = coords[p * ctx->dim + 0]; in DMInterpolate_Hex_Private()
808 xi[1] = coords[p * ctx->dim + 1]; in DMInterpolate_Hex_Private()
809 xi[2] = coords[p * ctx->dim + 2]; in DMInterpolate_Hex_Private()
810 PetscCall(VecRestoreArray(real, &xi)); in DMInterpolate_Hex_Private()
812 PetscCall(VecGetArray(ref, &xi)); in DMInterpolate_Hex_Private()
813 xir[0] = PetscRealPart(xi[0]); in DMInterpolate_Hex_Private()
814 xir[1] = PetscRealPart(xi[1]); in DMInterpolate_Hex_Private()
815 xir[2] = PetscRealPart(xi[2]); in DMInterpolate_Hex_Private()
824 PetscCall(VecRestoreArray(ref, &xi)); in DMInterpolate_Hex_Private()
891 PetscReal pcoords[3], xi[3]; in DMInterpolationEvaluate() local
897 PetscCall(DMPlexCoordinatesToReference(dm, ctx->cells[p], 1, pcoords, xi)); in DMInterpolationEvaluate()
909 PetscCall(PetscFECreateTabulation(fe, 1, 1, xi, 0, &T)); in DMInterpolationEvaluate()