Home
last modified time | relevance | path

Searched refs:integral (Results 1 – 24 of 24) sorted by relevance

/petsc/src/dm/dt/tests/
H A Dex3.c126 PetscReal integral; in main() local
133 …PetscDTTanhSinhIntegrate(funcs[f], bounds[f * 2 + 0], bounds[f * 2 + 1], digits, NULL, &integral)); in main()
134 …if (PetscAbsReal(integral - analytic[f]) > PetscMax(epsilon, PetscPowRealInt(10.0, -digits)) || Pe… in main()
135 …c%2" PetscInt_FMT " is wrong: %g (%g)\n", f + 1, (double)integral, (double)PetscAbsReal(integral -… in main()
140 PetscReal integral; in main() local
142 …cDTTanhSinhIntegrateMPFR(funcs[f], bounds[f * 2 + 0], bounds[f * 2 + 1], digits, NULL, &integral)); in main()
143integral - analytic[f]) > PetscPowRealInt(10.0, -digits)) PetscCall(PetscPrintf(PETSC_COMM_SELF, "… in main()
H A Dex14.c13 PetscReal integral, integral2; in VerifyDistribution() local
17 …ate((void (*)(const PetscReal[], void *, PetscReal *))pdf, lower, upper, digits, NULL, &integral)); in VerifyDistribution()
18 …Real(integral - 1) < 100 * PETSC_MACHINE_EPSILON, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "PDF %s mu… in VerifyDistribution()
22 …tegrate((void (*)(const PetscReal[], void *, PetscReal *))pdf, lower, x, digits, NULL, &integral)); in VerifyDistribution()
24integral - integral2) < PETSC_SQRT_MACHINE_EPSILON, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Integra… in VerifyDistribution()
H A Dex9.c21 PetscReal integral = 0.; in testOrthogonality() local
24 … for (k = 0; k < npoints; k++) integral += weights[k] * p[i * npoints + k] * p[j * npoints + k]; in testOrthogonality()
25integral - exact) <= PETSC_SMALL, PETSC_COMM_SELF, PETSC_ERR_PLIB, "<P[%" PetscInt_FMT "], P[%" Pe… in testOrthogonality()
/petsc/src/dm/impls/plex/tests/
H A Dex99.c60 static PetscErrorCode CheckIntegral(DM dm, PetscReal integral, PetscReal tol) in CheckIntegral() argument
71 if (integral > 0 && PetscAbsReal(integral - rval) > tol) { in CheckIntegral()
72 …tual value (error %g > %g tol)\n", (double)rval, (double)integral, (double)PetscAbsReal(integral -… in CheckIntegral()
147 PetscReal integral = 0, tol = (PetscReal)1.0e-4; in main() local
148 PetscCall(PetscOptionsGetReal(NULL, NULL, "-integral", &integral, &check)); in main()
152 PetscCall(CheckIntegral(dm, integral, tol)); in main()
H A Dex8.c196 PetscReal normal[3], integral[3] = {0., 0., 0.}, area; in CheckGaussLaw() local
213 for (d = 0; d < cdim; ++d) integral[d] += sgn * area * normal[d]; in CheckGaussLaw()
216integral[d]) < tol, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cell %" PetscInt_FMT " Surface integral for … in CheckGaussLaw()
/petsc/doc/manualpages/MANSECHeaders/
H A DSensitivity10 …y depend on the final solution to the ODE/DAE or on the whole trajectory (taking an integral form).
11 The integral can be evaluated together with the time integration.
/petsc/src/snes/tutorials/output/
H A Dex12_bd_int_1.out18 Solution boundary integral: 3.333
H A Dex12_bd_int_0.out18 Solution boundary integral: 3.333
/petsc/doc/manual/
H A Ddt.md34 The cumulative distribution function (CDF) is the incomplete integral of the PDF,
H A Dts.md1187 If there is an integral term in the cost function, i.e. $r$ is
1189 original ODE. To evaluate the integral, one needs to create a child
1212 Since the integral term is additive to the cost function, its gradient
1221 One can obtain the value of the integral term by calling
1230 if the integral term is evaluated in the forward run (inside
1233 `TSSolve()`. Note that this also allows for evaluating the integral
1319 Theta methods for cost function with an integral term
1324 methods for cost function with an integral term
H A Ddmplex.md309 calculation, we calculate an integral over each element, and then sum up
343 // Do integral in quadrature loop putting the result into r[]
/petsc/src/ts/tests/
H A Dex27.c287 …, PetscInt Np, const PetscReal vp[], const PetscReal velocity[], PetscReal integral[], AppCtx *ctx) in ComputeGradS() argument
296 for (d = 0; d < dim; ++d) integral[d] = 0.0; in ComputeGradS()
306 …for (d = 0; d < dim; ++d) integral[d] += (-1. / epsilon) * PetscAbsReal(vp[d] - vc_l[d]) * Gaussia… in ComputeGradS()
/petsc/src/dm/impls/plex/
H A Dplexmetric.c1267 PetscScalar *met, *det, integral, constants[1]; in DMPlexMetricNormalize() local
1302 PetscCall(DMPlexComputeIntegralFEM(dmTmp, tmp, &integral, NULL)); in DMPlexMetricNormalize()
1310 PetscCall(DMPlexComputeIntegralFEM(dmDet, determinant, &integral, NULL)); in DMPlexMetricNormalize()
1312 realIntegral = PetscRealPart(integral); in DMPlexMetricNormalize()
H A Dplexfem.c2600 PetscErrorCode DMPlexComputeIntegralFEM(DM dm, Vec X, PetscScalar *integral, PetscCtx ctx) in DMPlexComputeIntegralFEM() argument
2610 PetscAssertPointer(integral, 3); in DMPlexComputeIntegralFEM()
2633 …PetscCallMPI(MPIU_Allreduce(lintegral, integral, Nf, MPIU_SCALAR, MPIU_SUM, PetscObjectComm((Petsc… in DMPlexComputeIntegralFEM()
2636 …etscCall(PetscPrintf(PetscObjectComm((PetscObject)dm), " %g", (double)PetscRealPart(integral[f]))); in DMPlexComputeIntegralFEM()
2859 …st PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscScalar *integral, PetscCtx ctx) in DMPlexComputeBdIntegral() argument
2872 PetscAssertPointer(integral, 7); in DMPlexComputeBdIntegral()
2885 PetscCall(PetscArrayzero(integral, Nf)); in DMPlexComputeBdIntegral()
2906 for (face = 0; face < numFaces; ++face) integral[f] += fintegral[face * Nf + f]; in DMPlexComputeBdIntegral()
/petsc/src/dm/dt/fe/impls/basic/
H A Dfebasic.c162 …cScalar coefficients[], PetscDS dsAux, const PetscScalar coefficientsAux[], PetscScalar integral[]) in PetscFEIntegrate_Basic() argument
246 integral[e * Nf + field] += integrand; in PetscFEIntegrate_Basic()
248 …ment Field %" PetscInt_FMT " integral: %g\n", Nf, (double)PetscRealPart(integral[e * Nf + field]))… in PetscFEIntegrate_Basic()
255 …cScalar coefficients[], PetscDS dsAux, const PetscScalar coefficientsAux[], PetscScalar integral[]) in PetscFEIntegrateBd_Basic() argument
380 integral[e * Nf + field] += integrand; in PetscFEIntegrateBd_Basic()
381 … %g tot: %g\n", (double)PetscRealPart(integrand), (double)PetscRealPart(integral[e * Nf + field]))… in PetscFEIntegrateBd_Basic()
/petsc/doc/tutorials/
H A Dhandson.md352 (integral is conserved) and Energy (not conserved)
/petsc/src/dm/dt/fe/interface/
H A Dfe.c1399 …calar coefficients[], PetscDS probAux, const PetscScalar coefficientsAux[], PetscScalar integral[]) in PetscFEIntegrate() argument
1406 …l((*fe->ops->integrate)(prob, field, Ne, cgeom, coefficients, probAux, coefficientsAux, integral)); in PetscFEIntegrate()
1435 …calar coefficients[], PetscDS probAux, const PetscScalar coefficientsAux[], PetscScalar integral[]) in PetscFEIntegrateBd() argument
1442 …->integratebd)(prob, field, obj_func, Ne, geom, coefficients, probAux, coefficientsAux, integral)); in PetscFEIntegrateBd()
/petsc/doc/changes/
H A D315.md289 integral for P0
/petsc/doc/install/
H A Dinstall_tutorial.md166 - Setting various known machine quantities for PETSc to use such as known integral sizes,
/petsc/doc/tutorials/physics/
H A Dguide_to_stokes.md53 where integration by parts has added a boundary integral over the normal derivative of the stress (…
57 …determined by the physics. Given a quadrature rule to evaluate the form integral, we would only ne…
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DTS.pyx2633 """Return a vector of values of the integral term in the cost functions.
2780 True if evaluating the integral forward in time
/petsc/doc/community/meetings/2023/
H A Dindex.md594 collision integral. In recent years a particle discretization has been
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas3469 (acoustics-waveeq/integral-surf-id (1000000))
4339 (vof/oc/wave-spect/dir-integral-m 2)
4340 (vof/oc/wave-spect/freq-integral-m 0)
4693 (species/tfm/lt-integral 0.02)
8645 (twotemp/collision-integral-repulsive-potential (0.138 0.0106 0.765 0.157 0.0274 1.235))
8646 (twotemp/collision-integral-attractive-potential (-0.476 0.0313 0.784 -0.146 0.0377 1.262))
/petsc/doc/
H A Dpetsc.bib2501 title = {Conservative discretization of the {Landau} collision integral},
16359 abstract = {{ Fibre bundles, now an integral part of differential geometry, are also of great
16515 annote = {Hierarchical matrices for fast integral transform}
18950 title = {Analysis of fast boundary-integral approximations for modeling electrostatic
19354 title = {On multilevel iterative methods for integral equations of the second kind and
21194 title = {Iterative procedures for nonlinear integral equations},