| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex7.c | 10 …PetscInt startx, starty, startz, nx, ny, nz, i, j, k, d, is, js, ks, dof0, dof1, dof2, dof3,… in main() local 19 dof2 = 1; in main() 22 …_PERIODIC, 4, 4, 4, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENC… in main() 25 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in main() 26 dofTotal = dof0 + 3 * dof1 + 3 * dof2 + dof3; in main() 117 for (d = dof0 + 2 * dof1; d < dof0 + 2 * dof1 + dof2; ++d) { in main() 126 for (d = dof0 + 2 * dof1 + dof2; d < dof0 + 3 * dof1 + dof2; ++d) { in main() 135 for (d = dof0 + 3 * dof1 + dof2; d < dof0 + 3 * dof1 + 2 * dof2; ++d) { in main() 144 for (d = dof0 + 3 * dof1 + 2 * dof2; d < dof0 + 3 * dof1 + 3 * dof2; ++d) { in main()
|
| H A D | ex12.c | 10 …PetscInt startx, starty, nx, ny, i, j, d, is, js, dof0, dof1, dof2, dofTotal, stencilWidth, … in main() local 19 dof2 = 1; in main() 21 …ODIC, DM_BOUNDARY_PERIODIC, 4, 4, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, DMSTAG_STENCIL_STA… in main() 24 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, NULL)); in main() 25 dofTotal = dof0 + 2 * dof1 + dof2; in main()
|
| H A D | ex9.c | 10 …PetscInt startx, starty, startz, nx, ny, nz, i, j, k, d, is, js, ks, dof0, dof1, dof2, dof3,… in main() local 19 dof2 = 1; in main() 22 …_PERIODIC, 4, 4, 4, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENC… in main() 25 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in main() 26 dofTotal = dof0 + 3 * dof1 + 3 * dof2 + dof3; in main()
|
| H A D | ex13.c | 199 …PetscInt i, j, startx, starty, nx, ny, nExtrax, nExtray, dof0, dof1, dof2, c, idxLeft, idxDo… in Test2_2d() local 207 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, NULL)); in Test2_2d() 214 if (dof2 > 0) PetscCall(DMStagGetLocationSlot(dm, DMSTAG_ELEMENT, 0, &idxElement)); in Test2_2d() 234 for (c = 0; c < dof2; ++c) { in Test2_2d() 282 for (c = 0; c < dof2; ++c) { in Test2_2d() 288 for (c = 0; c < dof2; ++c) { in Test2_2d() 306 …tartx, starty, startz, nx, ny, nz, nExtrax, nExtray, nExtraz, dof0, dof1, dof2, dof3, c, idxLeft, … in Test2_3d() local 313 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in Test2_3d() 321 if (dof2 > 0) { in Test2_3d() 353 for (c = 0; c < dof2; ++c) { in Test2_3d() [all …]
|
| H A D | ex10.c | 10 …PetscInt startx, starty, nx, ny, i, j, d, is, js, dof0, dof1, dof2, dofTotal, stencilWidth, … in main() local 19 dof2 = 1; in main() 21 …ODIC, DM_BOUNDARY_PERIODIC, 4, 4, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, DMSTAG_STENCIL_BOX… in main() 24 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, NULL)); in main() 25 dofTotal = dof0 + 2 * dof1 + dof2; in main() 109 for (d = dofTotal - dof2; d < dofTotal; ++d) { in main()
|
| H A D | ex51.c | 13 const PetscInt dof0 = 2, dof1 = 2, dof2 = 2, dof3 = 2, N_x = 3, N_y = 3, N_z = 3; in main() local 18 …ONE, N_x, N_y, N_z, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENC… in main()
|
| H A D | ex11.c | 22 PetscInt dof0, dof1, dof2; in main() local 31 dof2 = 1; in main() 32 PetscCall(PetscOptionsGetInt(NULL, NULL, "-dof2", &dof2, NULL)); in main() 33 …OSTED, DM_BOUNDARY_GHOSTED, 3, 3, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, DMSTAG_STENCIL_BOX… in main()
|
| H A D | ex17.c | 9 PetscInt dim, dof0, dof1, dof2, dof3; in main() local 33 PetscCall(DMStagGetDOF(dm, &dof0, &dof1, &dof2, &dof3)); in main()
|
| H A D | ex8.c | 22 PetscInt dof0, dof1, dof2, dof3; in main() local 31 dof2 = 1; in main() 33 …Y_GHOSTED, 3, 3, 3, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENC… in main()
|
| H A D | ex18.c | 105 const PetscInt dof0 = 0, dof1 = 1, dof2 = 1; /* 1 dof on each edge and element center */ in main() local 107 …ARY_NONE, DM_BOUNDARY_NONE, 8, 8, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, DMSTAG_STENCIL_BOX… in main()
|
| H A D | ex30.c | 47 … const PetscInt dof0 = 0, dof1 = 0, dof2 = 1, dof3 = 1; /* 1 dof on each face and element center */ in main() local 49 …DARY_NONE, 4, 5, 6, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENC… in main()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmstag.py | 109 dof2 = self.da.getLocationDof('element') 112 self.assertEqual(dofs[2], dof2) 116 dof2 = self.da.getLocationDof('left') 120 self.assertEqual(dofs[2], dof2) 291 for dof2 in DOF2: 292 if dim == 1 and dof2 > 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/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdmstag.pxi | 164 cdef object dof0=None, dof1=None, dof2=None, dof3=None 168 elif ndofs == 3: dof0, dof1, dof2 = dofs 169 elif ndofs == 4: dof0, dof1, dof2, dof3 = dofs 172 if ndofs >= 3: _dof2[0] = asInt(dof2) 179 PetscInt dof2, 182 elif ndofs == 3: return (toInt(dof0), toInt(dof1), toInt(dof2)) 183 elif ndofs == 4: return (toInt(dof0), toInt(dof1), toInt(dof2), toInt(dof3))
|
| H A D | DMStag.pyx | 113 cdef PetscInt ndofs=PETSC_DECIDE, dof0=1, dof1=0, dof2=0, dof3=0 115 ndofs = asDofs(cdofs, &dof0, &dof1, &dof2, &dof3) 153 …CHKERR(DMStagCreate2d(ccomm, btx, bty, M, N, m, n, dof0, dof1, dof2, stype, swidth, lx, ly, &newda… 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) [all …]
|
| /petsc/src/dm/impls/stag/ |
| H A D | stag.c | 12 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() 35 if (dim >= 2) PetscCall(PetscCalloc1(f2 * dof2, &stencil2)); in DMCreateFieldDecomposition_Stag() 53 for (d = 0; d < dof2; ++d) { in DMCreateFieldDecomposition_Stag() 54 stencil2[dof2 * k + d].i = 0; in DMCreateFieldDecomposition_Stag() 55 stencil2[dof2 * k + d].j = 0; in DMCreateFieldDecomposition_Stag() 56 stencil2[dof2 * k + d].j = 0; in DMCreateFieldDecomposition_Stag() 73 if (dim >= 2 && dof2 != 0) ++n_fields; in DMCreateFieldDecomposition_Stag() 109 for (d = 0; d < dof2; ++d) { in DMCreateFieldDecomposition_Stag() 138 for (d = 0; d < dof2; ++d) { in DMCreateFieldDecomposition_Stag() [all …]
|
| H A D | stagintern.c | 63 …etscInt m, PetscInt n, PetscInt p, PetscInt dof0, PetscInt dof1, PetscInt dof2, PetscInt dof3, DMS… in DMStagInitialize() argument 72 PetscCall(DMStagSetDOF(dm, dof0, dof1, dof2, dof3)); in DMStagInitialize()
|
| H A D | stagutils.c | 297 PetscErrorCode DMStagGetDOF(DM dm, PetscInt *dof0, PetscInt *dof1, PetscInt *dof2, PetscInt *dof3) in DMStagGetDOF() argument 305 if (dof2) *dof2 = stag->dof[2]; in DMStagGetDOF() 709 PetscErrorCode DMStagCreateCompatibleDMStag(DM dm, PetscInt dof0, PetscInt dof1, PetscInt dof2, Pet… 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 1147 PetscValidLogicalCollectiveInt(dm, dof2, 4); in DMStagSetDOF() 1153 …PetscCheck(dim <= 1 || dof2 >= 0, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "dof… in DMStagSetDOF() 1157 if (dim > 1) stag->dof[2] = dof2; in DMStagSetDOF()
|
| H A D | stag2d.c | 48 …etscInt N, PetscInt m, PetscInt n, PetscInt dof0, PetscInt dof1, PetscInt dof2, DMStagStencilType … in DMStagCreate2d() argument 53 …PetscCall(DMStagInitialize(bndx, bndy, DM_BOUNDARY_NONE, M, N, 0, m, n, 0, dof0, dof1, dof2, 0, st… in DMStagCreate2d()
|
| H A D | stag3d.c | 55 …etscInt m, PetscInt n, PetscInt p, PetscInt dof0, PetscInt dof1, PetscInt dof2, PetscInt dof3, DMS… in DMStagCreate3d() argument 60 …PetscCall(DMStagInitialize(bndx, bndy, bndz, M, N, P, m, n, p, dof0, dof1, dof2, dof3, stencilType… in DMStagCreate3d()
|
| /petsc/src/mat/impls/kaij/ |
| H A D | kaij.c | 738 PetscInt i, j, *v_pivots, dof, dof2; in MatInvertBlockDiagonal_SeqKAIJ() local 746 dof2 = dof * dof; in MatInvertBlockDiagonal_SeqKAIJ() 752 if (!b->ibdiag) PetscCall(PetscMalloc1(dof2 * m, &b->ibdiag)); in MatInvertBlockDiagonal_SeqKAIJ() 759 PetscCall(PetscArraycpy(diag, S, dof2)); in MatInvertBlockDiagonal_SeqKAIJ() 761 PetscCall(PetscArrayzero(diag, dof2)); in MatInvertBlockDiagonal_SeqKAIJ() 772 for (j = 0; j < dof2; j++) diag[j] += aval * T[j]; in MatInvertBlockDiagonal_SeqKAIJ() 775 diag += dof2; in MatInvertBlockDiagonal_SeqKAIJ()
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex6.c | 92 PetscInt dof0, dof1, dof2, dof3; in main() local 99 dof2 = 0; /* 1 dof per cell boundary */ in main() 100 …NONE, DM_BOUNDARY_NONE, 100, 100, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, DMSTAG_STENCIL_BOX… in main() 105 dof2 = 1; in main() 107 …Y_NONE, 30, 30, 30, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENC… in main()
|
| H A D | ex2.c | 93 const PetscInt dof0 = 0, dof1 = 1, dof2 = 1; /* 1 dof on each edge and element center */ in main() local 95 …ARY_NONE, DM_BOUNDARY_NONE, 7, 9, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, DMSTAG_STENCIL_BOX… in main()
|
| H A D | ex3.c | 122 … const PetscInt dof0 = 0, dof1 = 0, dof2 = 1, dof3 = 1; /* 1 dof on each face and element center */ in main() local 124 …DARY_NONE, 4, 5, 6, PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof0, dof1, dof2, dof3, DMSTAG_STENC… in main()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex14.c | 1343 const PetscInt dof = NODE_SIZE, dof2 = PRMNODE_SIZE; in THIDAVecView_VTK_XML() local 1370 PetscCall(PetscMPIIntCast(range[4] * range[5] * dof2, &nn2)); in THIDAVecView_VTK_XML() 1399 PetscCheck(nn2 == xm * ym * dof2, PETSC_COMM_SELF, PETSC_ERR_PLIB, "corrupt da2 send"); in THIDAVecView_VTK_XML()
|