Home
last modified time | relevance | path

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

/petsc/src/dm/impls/stag/tests/
H A Dex9.c10 …PetscInt startx, starty, startz, nx, ny, nz, i, j, k, d, is, js, ks, dof0, dof1, dof2, dof3,… in main() local
20 dof3 = 1; in main()
22 …DIC, 4, 4, 4, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_STA… in main()
25 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in main()
26 dofTotal = dof0 + 3 * dof1 + 3 * dof2 + dof3; in main()
H A Dex7.c10 …PetscInt startx, starty, startz, nx, ny, nz, i, j, k, d, is, js, ks, dof0, dof1, dof2, dof3,… in main() local
20 dof3 = 1; in main()
22 …DIC, 4, 4, 4, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_BOX… in main()
25 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in main()
26 dofTotal = dof0 + 3 * dof1 + 3 * dof2 + dof3; in main()
153 for (d = dofTotal - dof3; d < dofTotal; ++d) { in main()
H A Dex51.c13 const PetscInt dof0 = 2, dof1 = 2, dof2 = 2, dof3 = 2, N_x = 3, N_y = 3, N_z = 3; in main() local
18 …_x, N_y, N_z, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_BOX… in main()
H A Dex17.c9 PetscInt dim, dof0, dof1, dof2, dof3; in main() local
33 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in main()
H A Dex8.c22 PetscInt dof0, dof1, dof2, dof3; in main() local
32 dof3 = 1; in main()
33 …TED, 3, 3, 3, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_BOX… in main()
H A Dex13.c306 … starty, startz, nx, ny, nz, nExtrax, nExtray, nExtraz, dof0, dof1, dof2, dof3, c, idxLeft, idxDow… in Test2_3d() local
313 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in Test2_3d()
326 if (dof3 > 0) PetscCall(DMStagGetLocationSlot(dm, DMSTAG_ELEMENT, 0, &idxElement)); in Test2_3d()
371 for (c = 0; c < dof3; ++c) { in Test2_3d()
473 for (c = 0; c < dof3; ++c) { in Test2_3d()
479 for (c = 0; c < dof3; ++c) { in Test2_3d()
H A Dex30.c47 … const PetscInt dof0 = 0, dof1 = 0, dof2 = 1, dof3 = 1; /* 1 dof on each face and element center */ in main() local
49 …ONE, 4, 5, 6, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_BOX… in main()
/petsc/src/binding/petsc4py/test/
H A Dtest_dmstag.py117 dof3 = self.da.getLocationDof('element')
121 self.assertEqual(dofs[3], dof3)
294 for dof3 in DOF3:
295 if dim == 2 and dof3 > 0:
297 if dof0 == 0 and dof1 == 0 and dof2 == 0 and dof3 == 0:
299 dofs = [dof0, dof1, dof2, dof3][: dim + 1]
484 del counter, dim, dofs, dof0, dof1, dof2, dof3, boundary, stencil, width
/petsc/src/dm/impls/stag/
H A Dstagintern.c63 …cInt n, PetscInt p, PetscInt dof0, PetscInt dof1, PetscInt dof2, PetscInt dof3, DMStagStencilType … in DMStagInitialize() argument
72 PetscCall(DMStagSetDOF(dm, dof0, dof1, dof2, dof3)); in DMStagInitialize()
H A Dstag.c12 PetscInt f0, f1, f2, f3, dof0, dof1, dof2, dof3, n_entries, k, d, cnt, n_fields, dim; in DMCreateFieldDecomposition_Stag() local
17 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in DMCreateFieldDecomposition_Stag()
36 if (dim >= 3) PetscCall(PetscCalloc1(f3 * dof3, &stencil3)); in DMCreateFieldDecomposition_Stag()
62 for (d = 0; d < dof3; ++d) { in DMCreateFieldDecomposition_Stag()
63 stencil3[dof3 * k + d].i = 0; in DMCreateFieldDecomposition_Stag()
64 stencil3[dof3 * k + d].j = 0; in DMCreateFieldDecomposition_Stag()
65 stencil3[dof3 * k + d].j = 0; in DMCreateFieldDecomposition_Stag()
74 if (dim >= 3 && dof3 != 0) ++n_fields; in DMCreateFieldDecomposition_Stag()
154 for (d = 0; d < dof3; ++d) { in DMCreateFieldDecomposition_Stag()
173 if (dim >= 3 && dof3 != 0) { in DMCreateFieldDecomposition_Stag()
[all …]
H A Dstagutils.c297 PetscErrorCode DMStagGetDOF(DM dm, PetscInt *dof0, PetscInt *dof1, PetscInt *dof2, PetscInt *dof3) in DMStagGetDOF() argument
306 if (dof3) *dof3 = stag->dof[3]; in DMStagGetDOF()
709 …reateCompatibleDMStag(DM dm, PetscInt dof0, PetscInt dof1, PetscInt dof2, PetscInt dof3, DM *newdm) in DMStagCreateCompatibleDMStag() argument
714 PetscCall(DMStagSetDOF(*newdm, dof0, dof1, dof2, dof3)); in DMStagCreateCompatibleDMStag()
1138 PetscErrorCode DMStagSetDOF(DM dm, PetscInt dof0, PetscInt dof1, PetscInt dof2, PetscInt dof3) in DMStagSetDOF() argument
1148 PetscValidLogicalCollectiveInt(dm, dof3, 5); in DMStagSetDOF()
1154 …PetscCheck(dim <= 2 || dof3 >= 0, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "dof… in DMStagSetDOF()
1158 if (dim > 2) stag->dof[3] = dof3; in DMStagSetDOF()
H A Dstag3d.c55 …cInt n, PetscInt p, PetscInt dof0, PetscInt dof1, PetscInt dof2, PetscInt dof3, DMStagStencilType … in DMStagCreate3d() argument
60 …PetscCall(DMStagInitialize(bndx, bndy, bndz, M, N, P, m, n, p, dof0, dof1, dof2, dof3, stencilType… in DMStagCreate3d()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMStag.pyx113 cdef PetscInt ndofs=PETSC_DECIDE, dof0=1, dof1=0, dof2=0, dof3=0
115 ndofs = asDofs(cdofs, &dof0, &dof1, &dof2, &dof3)
155 …CHKERR(DMStagCreate3d(ccomm, btx, bty, btz, M, N, P, m, n, p, dof0, dof1, dof2, dof3, stype, swidt…
242 cdef PetscInt dof0=1, dof1=0, dof2=0, dof3=0
243 asDofs(gdofs, &dof0, &dof1, &dof2, &dof3)
244 CHKERR(DMStagSetDOF(self.dm, dof0, dof1, dof2, dof3))
358 cdef PetscInt dim=0, dof0=0, dof1=0, dof2=0, dof3=0
359 CHKERR(DMStagGetDOF(self.dm, &dof0, &dof1, &dof2, &dof3))
361 return toDofs(dim+1, dof0, dof1, dof2, dof3)
782 cdef PetscInt dof0=1, dof1=0, dof2=0, dof3=0
[all …]
H A Dpetscdmstag.pxi164 cdef object dof0=None, dof1=None, dof2=None, dof3=None
169 elif ndofs == 4: dof0, dof1, dof2, dof3 = dofs
173 if ndofs >= 4: _dof3[0] = asInt(dof3)
180 PetscInt dof3):
183 elif ndofs == 4: return (toInt(dof0), toInt(dof1), toInt(dof2), toInt(dof3))
/petsc/src/dm/impls/stag/tutorials/
H A Dex6.c92 PetscInt dof0, dof1, dof2, dof3; in main() local
106 dof3 = 0; /* 1 dof per cell boundary */ in main()
107 …, 30, 30, 30, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_BOX… in main()
H A Dex3.c122 … const PetscInt dof0 = 0, dof1 = 0, dof2 = 1, dof3 = 1; /* 1 dof on each face and element center */ in main() local
124 …ONE, 4, 5, 6, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENCIL_BOX… in main()