Home
last modified time | relevance | path

Searched refs:slope (Results 1 – 18 of 18) sorted by relevance

/petsc/src/ts/tutorials/multirate/
H A Dex8.c225 PetscScalar *x, *f, *slope; in FVRHSFunction_3WaySplit() local
243 …PetscCall(DMDAGetArray(da, PETSC_TRUE, &slope)); /* contains ghost points … in FVRHSFunction_3WaySplit()
282 slope[i * dof + j] = tmp; in FVRHSFunction_3WaySplit()
293 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxs / 2; in FVRHSFunction_3WaySplit()
294 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxs / 2; in FVRHSFunction_3WaySplit()
305 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxs / 2; in FVRHSFunction_3WaySplit()
306 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxm / 2; in FVRHSFunction_3WaySplit()
317 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxm / 2; in FVRHSFunction_3WaySplit()
318 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxs / 2; in FVRHSFunction_3WaySplit()
329 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxm / 2; in FVRHSFunction_3WaySplit()
[all …]
H A Dex6.c210 PetscScalar *x, *f, *slope; in FVRHSFunction_2WaySplit() local
227 …PetscCall(DMDAGetArray(da, PETSC_TRUE, &slope)); /* contains ghost points … in FVRHSFunction_2WaySplit()
265 slope[i * dof + j] = tmp; in FVRHSFunction_2WaySplit()
276 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxs / 2; in FVRHSFunction_2WaySplit()
277 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxs / 2; in FVRHSFunction_2WaySplit()
288 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxs / 2; in FVRHSFunction_2WaySplit()
289 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
300 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
301 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
312 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
[all …]
H A Dex5.c192 PetscScalar *x, *f, *slope; in FVRHSFunctionslow() local
206 PetscCall(DMDAGetArray(da, PETSC_TRUE, &slope)); in FVRHSFunctionslow()
245 slope[i * dof + j] = tmp; in FVRHSFunctionslow()
257 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hx / 2; in FVRHSFunctionslow()
258 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hx / 2; in FVRHSFunctionslow()
273 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hx / 2; in FVRHSFunctionslow()
274 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hx / 2; in FVRHSFunctionslow()
285 PetscCall(DMDARestoreArray(da, PETSC_TRUE, &slope)); in FVRHSFunctionslow()
297 PetscScalar *x, *f, *slope; in FVRHSFunctionfast() local
311 PetscCall(DMDAGetArray(da, PETSC_TRUE, &slope)); in FVRHSFunctionfast()
[all …]
H A Dex4.c554 PetscScalar *x, *f, *slope; in FVRHSFunction_2WaySplit() local
571 …PetscCall(DMDAGetArray(da, PETSC_TRUE, &slope)); /* contains ghost points … in FVRHSFunction_2WaySplit()
634 slope[i * dof + j] = tmp; in FVRHSFunction_2WaySplit()
645 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxs / 2; in FVRHSFunction_2WaySplit()
646 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxs / 2; in FVRHSFunction_2WaySplit()
657 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxs / 2; in FVRHSFunction_2WaySplit()
658 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
669 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
670 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
681 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hxf / 2; in FVRHSFunction_2WaySplit()
[all …]
H A Dfinitevolume1d.c528 PetscScalar *x, *f, *slope; in FVRHSFunction() local
542 PetscCall(DMDAGetArray(da, PETSC_TRUE, &slope)); /* contains ghost points */ in FVRHSFunction()
580 slope[i * dof + j] = tmp; in FVRHSFunction()
590 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hx / 2; in FVRHSFunction()
591 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hx / 2; in FVRHSFunction()
604 PetscCall(DMDARestoreArray(da, PETSC_TRUE, &slope)); in FVRHSFunction()
/petsc/src/sys/utils/
H A Dmathfit.c20 …gression(PetscInt n, const PetscReal x[], const PetscReal y[], PetscReal *slope, PetscReal *interc… in PetscLinearRegression() argument
30 PetscAssertPointer(slope, 4); in PetscLinearRegression()
69 *slope = beta[1]; in PetscLinearRegression()
/petsc/src/ts/utils/
H A Dtsconvest.c54 PetscReal *dt, *x, *y, slope, intercept; in PetscConvEstGetConvRateTS_Temporal_Private() local
96 PetscCall(PetscLinearRegression(Nr + 1, x, y, &slope, &intercept)); in PetscConvEstGetConvRateTS_Temporal_Private()
98 alpha[f] = slope; in PetscConvEstGetConvRateTS_Temporal_Private()
122 PetscReal *x, *y, slope, intercept; in PetscConvEstGetConvRateTS_Spatial_Private() local
244 PetscCall(PetscLinearRegression(Nr + 1, x, y, &slope, &intercept)); in PetscConvEstGetConvRateTS_Spatial_Private()
246 alpha[f] = -slope * dim; in PetscConvEstGetConvRateTS_Spatial_Private()
H A Ddmplexts.c366 PetscReal dt, shift, slope, intercept; in DMTSCheckJacobian() local
454 PetscCall(PetscLinearRegression(Nv, hs, es, &slope, &intercept)); in DMTSCheckJacobian()
458 if (convRate) *convRate = slope; in DMTSCheckJacobian()
461 …PetscAbsReal(2 - slope) <= tol, comm, PETSC_ERR_ARG_WRONG, "Taylor approximation convergence rate … in DMTSCheckJacobian()
463 …n) PetscCall(PetscPrintf(comm, "Taylor approximation converging at order %3.2f\n", (double)slope)); in DMTSCheckJacobian()
/petsc/src/snes/utils/
H A Ddmplexsnes.c902 PetscReal slope, intercept; in DMSNESCheckJacobian() local
984 PetscCall(PetscLinearRegression(Nv, hs, es, &slope, &intercept)); in DMSNESCheckJacobian()
988 …PetscAbsReal(2 - slope) <= tol, comm, PETSC_ERR_ARG_WRONG, "Taylor approximation convergence rate … in DMSNESCheckJacobian()
991 if (convRate) *convRate = slope; in DMSNESCheckJacobian()
993 …n) PetscCall(PetscPrintf(comm, "Taylor approximation converging at order %3.2f\n", (double)slope)); in DMSNESCheckJacobian()
H A Dconvest.c338 PetscReal *x, *y, slope, intercept; in PetscConvEstGetConvRateSNES_Private() local
439 PetscCall(PetscLinearRegression(Nr + 1, x, y, &slope, &intercept)); in PetscConvEstGetConvRateSNES_Private()
441 alpha[f] = -slope * dim; in PetscConvEstGetConvRateSNES_Private()
/petsc/src/ksp/ksp/interface/
H A Ditfunc.c2617 PetscReal *x, *y, slope, intercept, mean = 0.0, var = 0.0, res = 0.0; in KSPComputeConvergenceRate() local
2634 PetscCall(PetscLinearRegression(n, x, y, &slope, &intercept)); in KSPComputeConvergenceRate()
2636 res += PetscSqr(y[k] - (slope * x[k] + intercept)); in KSPComputeConvergenceRate()
2640 if (cr) *cr = PetscExpReal(slope); in KSPComputeConvergenceRate()
2657 PetscCall(PetscLinearRegression(n, x, y, &slope, &intercept)); in KSPComputeConvergenceRate()
2659 res += PetscSqr(y[k] - (slope * x[k] + intercept)); in KSPComputeConvergenceRate()
2663 if (ce) *ce = PetscExpReal(slope); in KSPComputeConvergenceRate()
/petsc/src/ts/tutorials/
H A Dex9.c1165 PetscScalar *x, *f, *slope; in FVRHSFunction() local
1181 PetscCall(DMDAGetArray(da, PETSC_TRUE, &slope)); in FVRHSFunction()
1219 slope[i * dof + j] = tmp; in FVRHSFunction()
1229 uL[j] = x[(i - 1) * dof + j] + slope[(i - 1) * dof + j] * hx / 2; in FVRHSFunction()
1230 uR[j] = x[(i - 0) * dof + j] - slope[(i - 0) * dof + j] * hx / 2; in FVRHSFunction()
1245 PetscCall(DMDARestoreArray(da, PETSC_TRUE, &slope)); in FVRHSFunction()
/petsc/doc/miscellaneous/
H A Dapplications_publications.md73 deformation rate and a steeper initial slope whereas on the other case tectonic
/petsc/doc/community/meetings/2025/
H A Dindex.md214 …nite element method and finite volume method, as well as preconditioners, slope limiters, and more…
/petsc/src/dm/impls/plex/
H A Dplexgeometry.c509 PetscReal slope = (x - x_j) * (y_i - y_j) - (x_i - x_j) * (y - y_j); in DMPlexLocatePoint_Quad_2D_Linear_Internal() local
510 if (slope == 0) { in DMPlexLocatePoint_Quad_2D_Linear_Internal()
515 if ((slope < 0) != (y_i < y_j)) ++crossings; in DMPlexLocatePoint_Quad_2D_Linear_Internal()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas1849 (vof-to-dpm/lump-charact/calc-vof-slope-from-node-values? #t)
1962 (dpm/dpm-vof/close-packing/static-gpress-slope 60.)
1972 (dpm/dpm-vof/static-pileup/bott-wall-max-slope-angle-in-deg 60.)
1985 (dpm/dpm-vof/static-pileup/frict-drag/slope-at-onset 1000.)
2116 (dpm/film-splash-angle-slope 0.266)
2948 (melt/slope-limit-fac 1.)
2949 (melt/slope-cutoff-fac 0.01)
3167 (pdf/auto-refine/slope 0.25)
3196 (prepdf/strained-fla-auto-refine/slope 0.1)
3223 (prepdf/ckcfd-prmx-fla-auto-refine/slope 0.1)
[all …]
/petsc/doc/tutorials/physics/
H A Dguide_to_stokes.md187 … of refined meshes, calculates the error on each mesh, and determines the slope on a logarithmic s…
/petsc/doc/
H A Dpetsc.bib20325 title = {Analysis of slope limiters on irregular grids},