Home
last modified time | relevance | path

Searched refs:xq (Results 1 – 8 of 8) sorted by relevance

/petsc/src/ts/tests/
H A Dex28.c232 PetscReal *xq, *wq; in CheckDistribution() local
255 PetscCall(PetscMalloc2(Nq, &xq, Nq, &wq)); in CheckDistribution()
256 PetscCall(PetscDTGaussQuadrature(100, vmin, vmax, xq, wq)); in CheckDistribution()
258 for (q = 0; q < Nq; ++q) neq += ComputePDF(m, n, T, &xq[q]) * wq[q]; in CheckDistribution()
262 for (q = 0; q < Nq; ++q) veq += xq[q] * ComputePDF(m, n, T, &xq[q]) * wq[q]; in CheckDistribution()
266 for (q = 0; q < Nq; ++q) Teq += PetscSqr(xq[q]) * ComputePDF(m, n, T, &xq[q]) * wq[q]; in CheckDistribution()
269 PetscCall(PetscFree2(xq, wq)); in CheckDistribution()
/petsc/src/ts/impls/implicit/discgrad/
H A Dtsdiscgrad.c338 const PetscReal *wq, *xq; in SNESTSFormFunction_DiscGrad() local
348 PetscCall(PetscQuadratureGetData(quad, NULL, NULL, &Nq, &xq, &wq)); in SNESTSFormFunction_DiscGrad()
350 PetscReal xi = xq[q], xim1 = 1 - xq[q]; in SNESTSFormFunction_DiscGrad()
/petsc/src/dm/impls/swarm/
H A Dswarmpic.c987 const PetscReal *xq, *wq; in DMSwarmComputeLocalSize() local
1005 PetscCall(PetscQuadratureGetData(quad, NULL, NULL, &Nq, &xq, &wq)); in DMSwarmComputeLocalSize()
1017 CoordinatesRefToReal(dim, dim, xi0, v0, J, &xq[q * dim], xr); in DMSwarmComputeLocalSize()
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c827 PetscReal *xq, *wq; in DMPlexTransformGetCoordinateFE() local
831 PetscCall(PetscMalloc1(Nq * cdim, &xq)); in DMPlexTransformGetCoordinateFE()
832 for (q = 0; q < Nq * cdim; ++q) xq[q] = PetscRealPart(Xq[q]); in DMPlexTransformGetCoordinateFE()
836 PetscCall(PetscQuadratureSetData(quad, dim, 1, Nq, xq, wq)); in DMPlexTransformGetCoordinateFE()
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c583 const PetscReal *xq, *xwq; in InitializeWeights() local
605 PetscCall(PetscQuadratureGetData(xquad, NULL, NULL, &xNq, &xq, &xwq)); in InitializeWeights()
626 CoordinatesRefToReal(dim, dim, xi0, xv0, xJ, &xq[q * dim], xqr); in InitializeWeights()
H A Dex2.c1280 const PetscReal *xq, *xwq; in InitializeWeights() local
1302 PetscCall(PetscQuadratureGetData(xquad, NULL, NULL, &xNq, &xq, &xwq)); in InitializeWeights()
1323 CoordinatesRefToReal(dim, dim, xi0, xv0, xJ, &xq[q * dim], xqr); in InitializeWeights()
H A Dex4.c1894 const PetscReal *xq, *xwq; in InitializeWeights() local
1916 PetscCall(PetscQuadratureGetData(xquad, NULL, NULL, &xNq, &xq, &xwq)); in InitializeWeights()
1937 CoordinatesRefToReal(dim, dim, xi0, xv0, xJ, &xq[q * dim], xqr); in InitializeWeights()
/petsc/src/dm/dt/interface/
H A Ddt.c3378 const PetscReal *xq, *wq; in PetscQuadratureComputePermutations() local
3382 PetscCall(PetscQuadratureGetData(quad, &qdim, NULL, &Nq, &xq, &wq)); in PetscQuadratureComputePermutations()
3400 CoordinatesRefToReal(dim, dim, xi0, v0, J, &xq[q * dim], txq); in PetscQuadratureComputePermutations()
3404 for (d = 0; d < dim; ++d) diff += PetscAbsReal(txq[d] - xq[qp * dim + d]); in PetscQuadratureComputePermutations()