Home
last modified time | relevance | path

Searched refs:xi0 (Results 1 – 16 of 16) sorted by relevance

/petsc/src/dm/impls/swarm/tests/
H A Dex2.c178 PetscReal *centroid, *coords, *xi0, *v0, *J, *invJ, detJ; in CreateParticles() local
216 PetscCall(PetscMalloc5(dim, &centroid, dim, &xi0, dim, &v0, dim * dim, &J, dim * dim, &invJ)); in CreateParticles()
224 for (d = 0; d < dim; ++d) xi0[d] = -1.0; in CreateParticles()
237 CoordinatesRefToReal(dim, dim, xi0, v0, J, refcoords, &coords[n * dim]); in CreateParticles()
241 PetscCall(PetscFree5(centroid, xi0, v0, J, invJ)); in CreateParticles()
271 PetscReal *v0, *J, *invJ, detJ, *coords, *xi0; in CreateParticles_Shape() local
297 PetscCall(PetscMalloc4(dim, &xi0, dim, &v0, dim * dim, &J, dim * dim, &invJ)); in CreateParticles_Shape()
298 for (c = 0; c < dim; c++) xi0[c] = -1.; in CreateParticles_Shape()
306 CoordinatesRefToReal(dim, dim, xi0, v0, J, &qpoints[q * dim], &coords[(c * Nq + q) * dim]); in CreateParticles_Shape()
314 PetscCall(PetscFree4(xi0, v0, J, invJ)); in CreateParticles_Shape()
/petsc/src/dm/dt/tests/
H A Dex5.c43 PetscReal xi0[3] = {-1., -1., -1.}; in main() local
69 for (j = 0; j < dim - 1; j++) testFull[i] += J[i * dim + j] * (testSub[j] - xi0[j]); in main()
/petsc/src/ts/tests/
H A Dex27.c67 PetscReal *centroid, *coords, *velocity, *xi0, *v0, *J, *invJ, detJ, *vals; in SetInitialCoordinates() local
86 PetscCall(PetscMalloc5(dim, &centroid, dim, &xi0, dim, &v0, dim * dim, &J, dim * dim, &invJ)); in SetInitialCoordinates()
87 for (d = 0; d < dim; ++d) xi0[d] = -1.0; in SetInitialCoordinates()
127 PetscCall(PetscFree5(centroid, xi0, v0, J, invJ)); in SetInitialCoordinates()
H A Dex28.c64 PetscReal *centroid, *coords, *xi0, *v0, *J, *invJ, detJ, *vals; in SetInitialCoordinates() local
80 PetscCall(PetscMalloc5(dim, &centroid, dim, &xi0, dim, &v0, dim * dim, &J, dim * dim, &invJ)); in SetInitialCoordinates()
81 for (d = 0; d < dim; ++d) xi0[d] = -1.0; in SetInitialCoordinates()
114 PetscCall(PetscFree5(centroid, xi0, v0, J, invJ)); in SetInitialCoordinates()
/petsc/include/petsc/private/
H A Dpetscfeimpl.h276 static inline void CoordinatesRefToReal(PetscInt dimReal, PetscInt dimRef, const PetscReal xi0[], c… in CoordinatesRefToReal() argument
282 for (e = 0; e < dimRef; ++e) x[d] += J[d * dimReal + e] * (xi[e] - xi0[e]); in CoordinatesRefToReal()
286 static inline void CoordinatesRealToRef(PetscInt dimReal, PetscInt dimRef, const PetscReal xi0[], c… in CoordinatesRealToRef() argument
291 xi[d] = xi0[d]; in CoordinatesRealToRef()
/petsc/src/dm/impls/swarm/
H A Dswarmpic.c990 PetscReal gmin[3], gmax[3], xi0[3]; in DMSwarmComputeLocalSize() local
1008 for (d = 0; d < dim; ++d) xi0[d] = -1.0; in DMSwarmComputeLocalSize()
1017 CoordinatesRefToReal(dim, dim, xi0, v0, J, &xq[q * dim], xr); in DMSwarmComputeLocalSize()
1153 PetscReal xi0[3]; in DMSwarmInitializeCoordinates() local
1165 for (d = 0; d < dim; ++d) xi0[d] = -1.0; in DMSwarmInitializeCoordinates()
1177 CoordinatesRefToReal(dim, dim, xi0, v0, J, xref, &x[p * dim]); in DMSwarmInitializeCoordinates()
H A Dswarm.c2213 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()
2232 for (d = 0; d < dim; ++d) xi0[d] = -1.0; in DMSwarmSetPointCoordinatesRandom()
2250 CoordinatesRefToReal(dim, dim, xi0, v0, J, refcoords, &coords[n * dim]); in DMSwarmSetPointCoordinatesRandom()
2255 PetscCall(PetscFree5(centroid, xi0, v0, J, invJ)); in DMSwarmSetPointCoordinatesRandom()
/petsc/src/dm/impls/plex/
H A Dplextree.c1264 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexComputeAnchorMatrix_Tree_Direct() local
1266 CoordinatesRefToReal(spdim, spdim, xi0, v0, J, &pointsRef[i * spdim], vtmp); in DMPlexComputeAnchorMatrix_Tree_Direct()
1267 CoordinatesRealToRef(spdim, spdim, xi0, v0parent, invJparent, vtmp, &pointsReal[i * spdim]); in DMPlexComputeAnchorMatrix_Tree_Direct()
1998 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexTreeRefineCell() local
2005 CoordinatesRefToReal(dim, dim, xi0, v0, J, coord, newCoord); in DMPlexTreeRefineCell()
3046 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexComputeInjectorReferenceTree() local
3081 CoordinatesRefToReal(dim, dim, xi0, v0parent, Jparent, pointReal, vtmp); in DMPlexComputeInjectorReferenceTree()
3082 CoordinatesRealToRef(dim, dim, xi0, v0, invJ, vtmp, pointRef); in DMPlexComputeInjectorReferenceTree()
H A Dplexfem.c3255 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexComputeInterpolatorGeneral() local
3258 CoordinatesRefToReal(dim, dim, xi0, v0, J, &qpoints[q * dim], x); in DMPlexComputeInterpolatorGeneral()
3271 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexComputeInterpolatorGeneral() local
3281 CoordinatesRealToRef(dim, dim, xi0, v0c, invJc, pVReal, x); in DMPlexComputeInterpolatorGeneral()
3411 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexComputeMassMatrixGeneral() local
3414 CoordinatesRefToReal(dim, dim, xi0, v0, J, &qpoints[q * dim], x); in DMPlexComputeMassMatrixGeneral()
3492 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexComputeMassMatrixGeneral() local
3495 CoordinatesRefToReal(dim, dim, xi0, v0, J, &qpoints[q * dim], x); in DMPlexComputeMassMatrixGeneral()
3507 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexComputeMassMatrixGeneral() local
3513 CoordinatesRealToRef(dim, dim, xi0, v0c, invJc, pVReal, x); in DMPlexComputeMassMatrixGeneral()
H A Dplexgeometry.c2372 PetscReal xi0[3] = {-1., -1., -1.}, v0[3], J0[9], detJ0; in DMPlexComputeCellGeometryFEM_Implicit() local
2424 …for (i = 0; i < Nq; i++) CoordinatesRefToReal(coordDim, dim, xi0, v0, J0, &points[dim * i], &v[coo… in DMPlexComputeCellGeometryFEM_Implicit()
3984 const PetscReal xi0[3] = {-1., -1., -1.}; in DMPlexReferenceToCoordinates() local
3986 CoordinatesRefToReal(dimC, dimR, xi0, v0, J, &refCoords[dimR * i], &realCoords[dimC * i]); in DMPlexReferenceToCoordinates()
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c585 PetscReal xi0[3]; in InitializeWeights() local
606 for (PetscInt d = 0; d < dim; ++d) xi0[d] = -1.0; in InitializeWeights()
626 CoordinatesRefToReal(dim, dim, xi0, xv0, xJ, &xq[q * dim], xqr); in InitializeWeights()
H A Dex2.c1282 PetscReal xi0[3]; in InitializeWeights() local
1303 for (PetscInt d = 0; d < dim; ++d) xi0[d] = -1.0; in InitializeWeights()
1323 CoordinatesRefToReal(dim, dim, xi0, xv0, xJ, &xq[q * dim], xqr); in InitializeWeights()
H A Dex4.c1896 PetscReal xi0[3]; in InitializeWeights() local
1917 for (PetscInt d = 0; d < dim; ++d) xi0[d] = -1.0; in InitializeWeights()
1937 CoordinatesRefToReal(dim, dim, xi0, xv0, xJ, &xq[q * dim], xqr); in InitializeWeights()
/petsc/src/dm/field/impls/ds/
H A Ddmfieldds.c1084 PetscReal xi0[3] = {-1., -1., -1.}; in DMFieldComputeFaceData_DS() local
1086 … CoordinatesRefToReal(dE, dim, xi0, v0, J, &orientPoints[o][dim * q + 0], &cellPoints[dE * q + 0]); in DMFieldComputeFaceData_DS()
/petsc/src/dm/dt/fe/interface/
H A Dfe.c827 const PetscReal xi0[3] = {-1., -1., -1.}; in PetscFEExpandFaceQuadrature() local
832 …CoordinatesRefToReal(dim, dim - 1, xi0, v0, J, &points[q * (dim - 1)], &facePoints[(f * Np + q) * … in PetscFEExpandFaceQuadrature()
/petsc/src/dm/dt/interface/
H A Ddt.c3392 PetscReal xi0[3] = {-1., -1., -1.}, v0[3], J[9], detJ, txq[3]; in PetscQuadratureComputePermutations() local
3400 CoordinatesRefToReal(dim, dim, xi0, v0, J, &xq[q * dim], txq); in PetscQuadratureComputePermutations()