Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 22 of 22) sorted by relevance

/petsc/src/ksp/pc/impls/gamg/
H A Dclassical.c190 PetscInt fn, cn, fs, fe, cs, ce, i, j, ncols, col, row_f, row_c, cmax = 0, idx, noff; in PCGAMGProlongator_Classical_Direct() local
206 fn = fe - fs; in PCGAMGProlongator_Classical_Direct()
224 PetscCall(PetscMalloc5(fn, &lsparse, fn, &gsparse, fn, &lcid, fn, &Amax_pos, fn, &Amax_neg)); in PCGAMGProlongator_Classical_Direct()
228 for (i = 0; i < fn; i++) { in PCGAMGProlongator_Classical_Direct()
240 for (i = 0; i < fn; i++) { in PCGAMGProlongator_Classical_Direct()
271 for (i = 0; i < fn; i++) { in PCGAMGProlongator_Classical_Direct()
301 PetscCall(MatSetSizes(*P, fn, cn, PETSC_DETERMINE, PETSC_DETERMINE)); in PCGAMGProlongator_Classical_Direct()
306 for (i = 0; i < fn; i++) { in PCGAMGProlongator_Classical_Direct()
562 PetscInt fs, fe, cs, ce, nl, i, j, k, li, lni, ci, ncols, maxcols, fn, cn, cid; in PCGAMGProlongator_Classical_Standard() local
578 fn = fe - fs; in PCGAMGProlongator_Classical_Standard()
[all …]
/petsc/src/sys/objects/
H A Ddestroy.c337 PetscFinalizeFunction fn; member
360 PetscCall((*top.thunk.fn.func)()); in PetscRunRegisteredFinalizers()
382 return a->thunk.fn.func == b->thunk.fn.func; in PetscFinalizerContainerEqual()
471 container.thunk.fn.func = f; in PetscRegisterFinalize()
/petsc/src/snes/tutorials/
H A Dex1z.zig4 pub export fn main(argc: c_int, argv: [*c][*c]u8) c_int {
H A Dex18.c138 …PetscScalar t0, tn, ts, te, tw, an, as, ae, aw, dn, ds, de, dw, fn = 0.0, fs = 0.0, fe = 0.0, fw… in FormFunction() local
189 fn = dn * (tn - t0); in FormFunction()
214 fn = dn * (tn - t0); in FormFunction()
215 } else fn = zero; in FormFunction()
240 fn = dn * (tn - t0); in FormFunction()
241 } else fn = zero; in FormFunction()
260 fn = dn * (tn - t0); in FormFunction()
279 fn = zero; in FormFunction()
282 f[j][i] = -hydhx * (fe - fw) - hxdhy * (fn - fs); in FormFunction()
H A Dbuild.zig5 pub fn build(b: *std.build.Builder) void {
H A Dex48.c780 Node n[8], *fn[8]; in THIFunctionLocal() local
784 HexExtractRef(f, i, j, k, fn); in THIFunctionLocal()
802fn[l]->u += dp[0] * jw * eta * (4. * du[0] + 2. * dv[1]) + dp[1] * jw * eta * (du[1] + dv[0]) + dp… in THIFunctionLocal()
803fn[l]->v += dp[1] * jw * eta * (2. * du[0] + 4. * dv[1]) + dp[0] * jw * eta * (du[1] + dv[0]) + dp… in THIFunctionLocal()
823 fn[0]->u = thi->dirichlet_scale * diagu * x[i][j][k].u; in THIFunctionLocal()
824 fn[0]->v = thi->dirichlet_scale * diagv * x[i][j][k].v; in THIFunctionLocal()
839 fn[ls + l]->u += pp * jw * beta2 * u; in THIFunctionLocal()
840 fn[ls + l]->v += pp * jw * beta2 * v; in THIFunctionLocal()
/petsc/src/binding/petsc4py/src/petsc4py/lib/
H A D__init__.py81 f, fn, info = imp.find_module(name, pathlist)
83 return imp.load_module(fullname, f, fn, info)
/petsc/src/snes/tests/
H A Dex2.c47 PetscInt pt, fn; in ProcessOptions() local
58 fn = options->funcType; in ProcessOptions()
59 …-func_type", "The function type", "ex2.c", funcTypes, 2, funcTypes[options->funcType], &fn, NULL)); in ProcessOptions()
60 options->funcType = (FuncType)fn; in ProcessOptions()
H A Dex20.c138 …PetscScalar t0, tn, ts, te, tw, an, as, ae, aw, dn, ds, de, dw, fn = 0.0, fs = 0.0, fe = 0.0, f… in FormFunction() local
192 fn = dn * (tn - t0); in FormFunction()
229 fn = dn * (tn - t0); in FormFunction()
231 fn = zero; in FormFunction()
277 fn = dn * (tn - t0); in FormFunction()
279 fn = zero; in FormFunction()
317 fn = dn * (tn - t0); in FormFunction()
354 fn = zero; in FormFunction()
394 fn = dn * (tn - t0); in FormFunction()
423 fn = dn * (tn - t0); in FormFunction()
[all …]
/petsc/src/dm/dt/interface/
H A Ddtds.c3691 PetscInt Nf, Nfn, fn; in PetscDSSelectDiscretizations() local
3700 for (fn = 0; fn < numFields; ++fn) { in PetscDSSelectDiscretizations()
3701 const PetscInt f = fields ? fields[fn] : fn; in PetscDSSelectDiscretizations()
3712 PetscCall(PetscDSSetDiscretization(newprob, fn, (PetscObject)fe)); in PetscDSSelectDiscretizations()
3715 PetscCall(PetscDSSetDiscretization(newprob, fn, disc)); in PetscDSSelectDiscretizations()
3740 PetscInt Nf, Nfn, fn, gn; in PetscDSSelectEquations() local
3749 for (fn = 0; fn < numFields; ++fn) { in PetscDSSelectEquations()
3750 const PetscInt f = fields ? fields[fn] : fn; in PetscDSSelectEquations()
3761 PetscCall(PetscDSSetObjective(newprob, fn, obj)); in PetscDSSelectEquations()
3762 PetscCall(PetscDSSetResidual(newprob, fn, f0, f1)); in PetscDSSelectEquations()
[all …]
/petsc/
H A Dsetup.py273 for fn in filenames:
274 self.outputs.append(os.path.join(dirpath, fn))
/petsc/config/
H A Dgmakegen.py37 def parse_makefile(fn, out=None): argument
40 with open(fn) as f:
/petsc/src/sys/classes/draw/utils/
H A Dimage.c183 #define SETERRGIF(msg, fn) SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, msg " GIF file %s", fn) in PetscDrawMovieSaveGIF() argument
/petsc/src/ts/tutorials/
H A Dex11.h683 …static PetscScalar bn[3], fn, ft, tg[3], pl, rl, pm, pr, rr, xp, ubl, ubm, ubr, dtt, unm, tmp, utl… in godunovflux() local
770 fn = rhom * unm * unm + pm; in godunovflux()
774 flux[1] = fn * nn[0] + ft * tg[0]; in godunovflux()
775 flux[2] = fn * nn[1] + ft * tg[1]; in godunovflux()
H A Dex14.c776 Node n[8], ndot[8], *fn[8]; in THIFunctionLocal_3D() local
782 HexExtractRef(f, i, j, k, fn); in THIFunctionLocal_3D()
804fn[l]->u += dp[0] * jw * eta * (4. * du[0] + 2. * dv[1]) + dp[1] * jw * eta * (du[1] + dv[0]) + dp… in THIFunctionLocal_3D()
805fn[l]->v += dp[1] * jw * eta * (2. * du[0] + 4. * dv[1]) + dp[0] * jw * eta * (du[1] + dv[0]) + dp… in THIFunctionLocal_3D()
806 fn[l]->u += pp * jw * udot * thi->inertia * pp; in THIFunctionLocal_3D()
807 fn[l]->v += pp * jw * vdot * thi->inertia * pp; in THIFunctionLocal_3D()
827 fn[0]->u = thi->dirichlet_scale * diagu * x[i][j][k].u; in THIFunctionLocal_3D()
828 fn[0]->v = thi->dirichlet_scale * diagv * x[i][j][k].v; in THIFunctionLocal_3D()
843 fn[ls + l]->u += pp * jw * beta2 * u; in THIFunctionLocal_3D()
844 fn[ls + l]->v += pp * jw * beta2 * v; in THIFunctionLocal_3D()
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c1466 …const PetscInt fn = rcone[coff++]; /* Number of cones of p that need to b… in DMPlexTransformGetCone_Internal() local
1471 for (lc = 0; lc < fn; ++lc) { in DMPlexTransformGetCone_Internal()
1491 PetscCall(DMPlexTransformGetSubcellOrientation(tr, pct, pp, fn ? po : o, ft, pr, fo, &pr, &fo)); in DMPlexTransformGetCone_Internal()
1590 PetscInt Nr = rsize[n], fn, c; in DMPlexTransformGetConeOriented() local
1596fn = rcone[coff++]; /* Number of cones of p that need to be taken when producing new cone point */ in DMPlexTransformGetConeOriented()
1597 coff += fn; in DMPlexTransformGetConeOriented()
1631 PetscInt Nr = rsize[n], fn, c; in DMPlexTransformGetCone() local
1637fn = rcone[coff++]; /* Number of cones of p that need to be taken when producing new cone point */ in DMPlexTransformGetCone()
1638 coff += fn; in DMPlexTransformGetCone()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscsnes.pxi442 cdef object fn = toReal(fnorm)
447 reason = converged(Snes, it, (xn, gn, fn), *args, **kargs)
/petsc/include/petsc/private/
H A Dcupminterface.hpp419 …PETSC_NODISCARD static hipError_t cupmLaunchHostFunc(hipStream_t stream, cupmHostFn_t fn, void *ct…
424 fn(ctx);
/petsc/src/dm/dt/dualspace/interface/
H A Ddualspace.c1022 PetscQuadrature fn; in PetscDualSpacePushForwardSubspaces_Internal() local
1024 PetscCall(PetscDualSpaceGetFunctional(ssp, f, &fn)); in PetscDualSpacePushForwardSubspaces_Internal()
1025 PetscCall(PetscQuadraturePushForward(fn, dim, sv0, v0, J, k, &sp->functional[off + f])); in PetscDualSpacePushForwardSubspaces_Internal()
/petsc/src/dm/dt/dualspace/impls/lagrange/
H A Ddspacelagrange.c2176 PetscQuadrature fn; in PetscDualSpaceSetUp_Lagrange() local
2178 PetscCall(PetscDualSpaceGetFunctional(spcont, f, &fn)); in PetscDualSpaceSetUp_Lagrange()
2179 PetscCall(PetscObjectReference((PetscObject)fn)); in PetscDualSpaceSetUp_Lagrange()
2180 sp->functional[f] = fn; in PetscDualSpaceSetUp_Lagrange()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas5737 (impedance/fn/model "")
5738 (impedance/fn/data "")
5739 (impedance/fn/absorption "")
5740 (impedance/fn/reflection "")
5741 (impedance/fn/impedance "")
8210 (les-enh-wall-fn? #t)
/petsc/doc/manual/
H A Dksp.md2023 …- `-pc_fieldsplit_%d_fields` \<f1,f2,...:int> Use f1, f2, .. to define field `d`. The `fn` are in …