Home
last modified time | relevance | path

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

/petsc/src/dm/tutorials/
H A Dex9.c15 PetscInt ndof; in main() local
31 ndof = 1; in main()
32 PetscCall(PetscOptionsBoundedInt("-ndof", "Number of DOF's in DMDA", "", ndof, &ndof, NULL, 1)); in main()
37 … DM_BOUNDARY_NONE, DMDA_STENCIL_BOX, 100, 90, PETSC_DECIDE, PETSC_DECIDE, ndof, 1, NULL, NULL, &da… in main()
/petsc/src/dm/impls/plex/tutorials/
H A Dex8.c146 PetscInt ndof; in main() local
149 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &ndof, &array, &x)); in main()
150 … PetscCheck(ndof % cdim == 0, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "ndof not divisible by cdim"); in main()
152 …for (PetscInt i = 0; i < ndof; i += cdim) PetscCall(PetscScalarView(cdim, &x[i], PETSC_VIEWER_STDO… in main()
153 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &ndof, &array, &x)); in main()
H A Dex20.c10 PetscInt nvertexobs, ndof = 1, n_state_global; in main() local
96 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, faces[0], ndof, 1, NULL, &dm)); in main()
99 …DA_STENCIL_BOX, faces[0], faces[1] + 1, PETSC_DETERMINE, PETSC_DETERMINE, ndof, 1, NULL, NULL, &dm… in main()
102 …[1] + 1, faces[2] + 1, PETSC_DETERMINE, PETSC_DETERMINE, PETSC_DETERMINE, ndof, 1, NULL, NULL, NUL… in main()
163 PetscCall(MatSetBlockSizes(H, 1, ndof)); in main()
210 PetscCall(DMPlexGetLETKFLocalizationMatrix(nvertexobs, nobs_local, ndof, Vecxyz, H, &Q)); in main()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscpc.pxi379 PetscInt ndof, argument
391 cdef PetscInt[:] pydofs = <PetscInt[:ndof]>dofmap
394 pydofsWithAll = <PetscInt[:ndof]>dofmapWithAll
407 PetscInt ndof, argument
419 cdef PetscInt[:] pydofs = <PetscInt[:ndof]>dofmap
420 cdef PetscInt[:] pydofsWithAll = <PetscInt[:ndof]>dofmapWithAll
430 PetscInt ndof, argument
442 cdef PetscInt[:] pydofs = <PetscInt[:ndof]>dofmap
445 pydofsWithAll = <PetscInt[:ndof]>dofmapWithAll
458 PetscInt ndof, argument
[all …]
H A DDMDA.pyx99 cdef PetscInt ndof = PETSC_DECIDE
121 if dof is not None: ndof = asInt(dof)
123 if ndof==PETSC_DECIDE: ndof = 1
140 CHKERR(DMDACreateND(ccomm, ndim, ndof,
178 cdef PetscInt ndim = 0, ndof = 0
190 &ndof, &swidth,
199 ndof = asInt(dof)
208 CHKERR(DMDACreateND(comm, ndim, ndof,
261 cdef PetscInt ndof = asInt(dof)
262 CHKERR(DMDASetDof(self.dm, ndof))
H A DDMPlex.pyx1939 cdef PetscInt ncomp = 0, ndof = 0
1942 numDof = iarray_i(numDof, &ndof, &idof)
1943 assert ndof == ncomp*(dim+1)
H A DMat.pyx3164 cdef PetscInt ndim, ndof
3169 ndof = asInt(dof)
3172 CHKERR(MatSetStencil(self.mat, ndim, cdims, cstarts, ndof))
/petsc/doc/manual/
H A Dsection.md26 …tscSection` is a mapping between the mesh points and a tuple `(ndof, offset)`, where `ndof` is the…
27 …point, its data can be accessed by `array[offset + d]`, where `d` in `[0, ndof)` is the dof to acc…
33 …t be contiguously numbered, the indexes into the array (defined by each `(ndof, offset)` tuple) as…
36 ### Defining the (ndof, offset) tuple
38 Defining the `(ndof, offset)` tuple for each mesh point generally first starts with setting the `nd…
39 This associates a set of degrees of freedom (dof), (a small space $\{e_k\}\ 0 < k < ndof$), with ev…
40 If `ndof` is not set for a mesh point, it is assumed to be 0.
85 …at point: $v[\mathrm{pStart} <= point < \mathrm{pEnd}][0 <= dof < \mathrm{ndof}]$ [^petscsection-f…
91 …rm{pStart} <= point < \mathrm{pEnd}][0 <= field < \mathrm{num\_fields}][0 <= dof < \mathrm{ndof}]$.
93 …field < \mathrm{num\_fields}][\mathrm{pStart} <= point < \mathrm{pEnd}][0 <= dof < \mathrm{ndof}]$.
[all …]
/petsc/src/ksp/pc/impls/telescope/
H A Dtelescope_dmda.c348 PetscInt dim, nx, ny, nz, ndof, nsw, sum, k; in PCTelescopeSetUp_dmda_repart() local
365 …PetscCall(DMDAGetInfo(dm, &dim, &nx, &ny, &nz, NULL, NULL, NULL, &ndof, &nsw, &bx, &by, &bz, &sten… in PCTelescopeSetUp_dmda_repart()
408 PetscCall(DMDASetDof(ctx->dmrepart, ndof)); in PCTelescopeSetUp_dmda_repart()
494 PetscInt ndof; in PCTelescopeSetUp_dmda_permutation_3d() local
504 …PetscCall(DMDAGetInfo(dm, NULL, &nx, &ny, &nz, NULL, NULL, NULL, &ndof, NULL, NULL, NULL, NULL, NU… in PCTelescopeSetUp_dmda_permutation_3d()
510 sr = sr / ndof; in PCTelescopeSetUp_dmda_permutation_3d()
511 er = er / ndof; in PCTelescopeSetUp_dmda_permutation_3d()
512 Mr = Mr / ndof; in PCTelescopeSetUp_dmda_permutation_3d()
554 PetscCall(MatCreateMAIJ(Pscalar, ndof, &P)); in PCTelescopeSetUp_dmda_permutation_3d()
565 PetscInt ndof; in PCTelescopeSetUp_dmda_permutation_2d() local
[all …]
/petsc/src/dm/impls/plex/
H A Dplexpreallocate.c364 PetscInt ndof, ncdof; in DMPlexCreateAdjacencySection_Static() local
367 PetscCall(PetscSectionGetDof(section, padj, &ndof)); in DMPlexCreateAdjacencySection_Static()
369 … for (d = off; d < off + dof; ++d) PetscCall(PetscSectionAddDof(leafSectionAdj, d, ndof - ncdof)); in DMPlexCreateAdjacencySection_Static()
403 PetscInt ndof, ncdof; in DMPlexCreateAdjacencySection_Static() local
406 PetscCall(PetscSectionGetDof(section, padj, &ndof)); in DMPlexCreateAdjacencySection_Static()
408 … for (d = off; d < off + dof; ++d) PetscCall(PetscSectionAddDof(rootSectionAdj, d, ndof - ncdof)); in DMPlexCreateAdjacencySection_Static()
448 PetscInt ndof, ncdof, ngoff, nd; in DMPlexCreateAdjacencySection_Static() local
451 PetscCall(PetscSectionGetDof(section, padj, &ndof)); in DMPlexCreateAdjacencySection_Static()
454 for (nd = 0; nd < ndof - ncdof; ++nd) { in DMPlexCreateAdjacencySection_Static()
523 PetscInt ndof, ncdof, ngoff, nd; in DMPlexCreateAdjacencySection_Static() local
[all …]
H A Dplexdistribute.c372 PetscInt ndof, noff, n; in DMPlexCreateTwoSidedProcessSF() local
374 PetscCall(PetscSectionGetDof(rootRankSection, p, &ndof)); in DMPlexCreateTwoSidedProcessSF()
376 for (n = 0; n < ndof; ++n) PetscCall(PetscBTSet(neighbors, nranks[noff + n])); in DMPlexCreateTwoSidedProcessSF()
383 PetscInt ndof, noff, n; in DMPlexCreateTwoSidedProcessSF() local
385 PetscCall(PetscSectionGetDof(leafRankSection, p, &ndof)); in DMPlexCreateTwoSidedProcessSF()
387 for (n = 0; n < ndof; ++n) PetscCall(PetscBTSet(neighbors, nranks[noff + n])); in DMPlexCreateTwoSidedProcessSF()
H A Dplexgeometry.c64 PetscInt ndof; in DMPlexFindVertices() local
68 PetscCall(PetscSectionGetDof(cs, p, &ndof)); in DMPlexFindVertices()
69 …tscCheck(ndof == cdim, PETSC_COMM_SELF, PETSC_ERR_PLIB, "point %" PetscInt_FMT ": ndof = %" PetscI… in DMPlexFindVertices()
/petsc/src/ksp/pc/impls/patch/
H A Dpcpatch.c2046 PetscInt ndof = patch->totalDofsPerCell; in PCPatchComputeOperator_Internal() local
2052 const PetscInt *idx = dofsArray + (offset + i) * ndof; in PCPatchComputeOperator_Internal()
2053 … const PetscScalar *v = elementTensors + patch->precomputedTensorLocations[cell] * ndof * ndof; in PCPatchComputeOperator_Internal()
2054 PetscCall(MatSetValues(mat, ndof, idx, ndof, idx, v, ADD_VALUES)); in PCPatchComputeOperator_Internal()
2213 const PetscInt ndof = patch->totalDofsPerCell; in PCPatchPrecomputePatchTensors_Private() local
2260 PetscCall(VecCreateSeq(PETSC_COMM_SELF, ncell * ndof * ndof, &patch->cellMats)); in PCPatchPrecomputePatchTensors_Private()
2261 PetscCall(VecSetBlockSize(patch->cellMats, ndof)); in PCPatchPrecomputePatchTensors_Private()
2265 …PetscCall(MatCreateShell(PETSC_COMM_SELF, ncell * ndof, ncell * ndof, ncell * ndof, ncell * ndof, … in PCPatchPrecomputePatchTensors_Private()
2268 PetscCall(ISCreateStride(PETSC_COMM_SELF, ndof * ncell, 0, 1, &dofMap)); in PCPatchPrecomputePatchTensors_Private()
2273 …PetscCallBack("PCPatch callback", patch->usercomputeop(pc, -1, NULL, vecMat, cellIS, ndof * ncell,… in PCPatchPrecomputePatchTensors_Private()
[all …]
/petsc/src/dm/impls/plex/tests/
H A Dex103.c325 PetscInt ndof, offset, loc; in VerifyDMLabels() local
327 PetscCall(PetscSectionGetDof(pointSerialSection, p, &ndof)); in VerifyDMLabels()
332 for (PetscInt d = 0; d < ndof; d++) { in VerifyDMLabels()
/petsc/src/ksp/ksp/tutorials/
H A Dex73.c171 PetscInt nx, ny, sr, er, Mr, ndof; in DMDACreatePermutation_2d() local
220 …PetscCall(DMDAGetInfo(dmf, NULL, &nx, &ny, NULL, NULL, NULL, NULL, &ndof, NULL, NULL, NULL, NULL, … in DMDACreatePermutation_2d()
225 sr = sr / ndof; in DMDACreatePermutation_2d()
226 er = er / ndof; in DMDACreatePermutation_2d()
227 Mr = Mr / ndof; in DMDACreatePermutation_2d()
/petsc/src/dm/impls/plex/cgns/
H A Dplexcgns2.c1408 PetscInt ndof, offset, support_size; in DMPlexCGNS_MatchCGNSFacesToPlexFaces() local
1411 PetscCall(PetscSectionGetDof(connDistSection, f, &ndof)); in DMPlexCGNS_MatchCGNSFacesToPlexFaces()
1426 PetscCall(PetscFindIntUnsorted(vertex_point, ndof, &connDist[offset], &conn_has_vertex)); in DMPlexCGNS_MatchCGNSFacesToPlexFaces()