| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex6.c | 382 PetscCall(DMStagGetLocationSlot(ctx->dm_buoyancy, DMSTAG_LEFT, 0, &slot_buoyancy_left)); in UpdateVelocity_2d() 383 PetscCall(DMStagGetLocationSlot(ctx->dm_buoyancy, DMSTAG_DOWN, 0, &slot_buoyancy_down)); in UpdateVelocity_2d() 389 PetscCall(DMStagGetLocationSlot(ctx->dm_stress, DMSTAG_ELEMENT, 0, &slot_txx)); in UpdateVelocity_2d() 390 PetscCall(DMStagGetLocationSlot(ctx->dm_stress, DMSTAG_ELEMENT, 1, &slot_tyy)); in UpdateVelocity_2d() 391 PetscCall(DMStagGetLocationSlot(ctx->dm_stress, DMSTAG_UP_LEFT, 0, &slot_txy_upleft)); in UpdateVelocity_2d() 392 PetscCall(DMStagGetLocationSlot(ctx->dm_stress, DMSTAG_DOWN_LEFT, 0, &slot_txy_downleft)); in UpdateVelocity_2d() 393 PetscCall(DMStagGetLocationSlot(ctx->dm_stress, DMSTAG_DOWN_RIGHT, 0, &slot_txy_downright)); in UpdateVelocity_2d() 399 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_LEFT, 0, &slot_vx_left)); in UpdateVelocity_2d() 400 PetscCall(DMStagGetLocationSlot(ctx->dm_velocity, DMSTAG_DOWN, 0, &slot_vy_down)); in UpdateVelocity_2d() 463 PetscCall(DMStagGetLocationSlot(ctx->dm_buoyancy, DMSTAG_LEFT, 0, &slot_buoyancy_left)); in UpdateVelocity_3d() [all …]
|
| H A D | ex1.c | 140 PetscCall(DMStagGetLocationSlot(dmSol, LEFT, 0, &iu)); in main() 141 PetscCall(DMStagGetLocationSlot(dmSol, ELEMENT, 0, &ip)); in main() 142 PetscCall(DMStagGetLocationSlot(dmCoordSol, LEFT, 0, &ixu)); in main() 143 PetscCall(DMStagGetLocationSlot(dmCoordSol, ELEMENT, 0, &ixp)); in main()
|
| H A D | ex3.c | 192 PetscCall(DMStagGetLocationSlot(dmCoord, ELEMENT, d, &icp[d])); in CreateSystem() 193 PetscCall(DMStagGetLocationSlot(dmCoord, LEFT, d, &icux[d])); in CreateSystem() 194 PetscCall(DMStagGetLocationSlot(dmCoord, DOWN, d, &icuy[d])); in CreateSystem() 195 PetscCall(DMStagGetLocationSlot(dmCoord, BACK, d, &icuz[d])); in CreateSystem() 196 PetscCall(DMStagGetLocationSlot(dmCoord, RIGHT, d, &icux_right[d])); in CreateSystem() 197 PetscCall(DMStagGetLocationSlot(dmCoord, UP, d, &icuy_up[d])); in CreateSystem() 198 PetscCall(DMStagGetLocationSlot(dmCoord, FRONT, d, &icuz_front[d])); in CreateSystem() 1809 PetscCall(DMStagGetLocationSlot(dmSol, ELEMENT, 0, &ip)); in CreateReferenceSolution() 1810 PetscCall(DMStagGetLocationSlot(dmSol, LEFT, 0, &iux)); in CreateReferenceSolution() 1811 PetscCall(DMStagGetLocationSlot(dmSol, DOWN, 0, &iuy)); in CreateReferenceSolution() [all …]
|
| H A D | ex2.c | 580 PetscCall(DMStagGetLocationSlot(dmSol, DOWN, 0, &iuy)); in CreateReferenceSolution() 581 PetscCall(DMStagGetLocationSlot(dmSol, LEFT, 0, &iux)); in CreateReferenceSolution() 582 PetscCall(DMStagGetLocationSlot(dmSol, ELEMENT, 0, &ip)); in CreateReferenceSolution()
|
| H A D | ex4.c | 1887 PetscCall(DMStagGetLocationSlot(dm_coefficients, DMSTAG_ELEMENT, 0, &slot_eta_element)); in PopulateCoefficientData() 1888 PetscCall(DMStagGetLocationSlot(dm_coefficients, DMSTAG_DOWN_LEFT, 0, &slot_eta_downleft)); in PopulateCoefficientData() 1889 PetscCall(DMStagGetLocationSlot(dm_coefficients, DMSTAG_DOWN_LEFT, 1, &slot_rho_downleft)); in PopulateCoefficientData() 1906 PetscCall(DMStagGetLocationSlot(dm_coefficients, DMSTAG_BACK_LEFT, 0, &slot_eta_backleft)); in PopulateCoefficientData() 1907 PetscCall(DMStagGetLocationSlot(dm_coefficients, DMSTAG_BACK_LEFT, 1, &slot_rho_backleft)); in PopulateCoefficientData() 1908 PetscCall(DMStagGetLocationSlot(dm_coefficients, DMSTAG_BACK_DOWN, 0, &slot_eta_backdown)); in PopulateCoefficientData() 1909 PetscCall(DMStagGetLocationSlot(dm_coefficients, DMSTAG_BACK_DOWN, 1, &slot_rho_backdown)); in PopulateCoefficientData()
|
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex19.c | 37 PetscCall(DMStagGetLocationSlot(dmCoarse, DMSTAG_LEFT, 0, &vx)); in main() 38 PetscCall(DMStagGetLocationSlot(dmCoarse, DMSTAG_DOWN, 0, &vy)); in main() 39 PetscCall(DMStagGetLocationSlot(dmCoarse, DMSTAG_ELEMENT, 0, &p)); in main() 58 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_LEFT, 0, &vx)); in main() 59 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_DOWN, 0, &vy)); in main() 60 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_ELEMENT, 0, &p)); in main()
|
| H A D | ex8.c | 48 PetscCall(DMStagGetLocationSlot(dmSol, DMSTAG_LEFT, 0, &iux)); in main() 49 PetscCall(DMStagGetLocationSlot(dmSol, DMSTAG_DOWN, 0, &iuy)); in main() 50 PetscCall(DMStagGetLocationSlot(dmSol, DMSTAG_BACK, 0, &iuz)); in main() 51 PetscCall(DMStagGetLocationSlot(dmSol, DMSTAG_ELEMENT, 0, &ip)); in main() 138 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_LEFT, 0, &idxUx)); in ApplyOperator() 139 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_DOWN, 0, &idxUy)); in ApplyOperator() 140 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_BACK, 0, &idxUz)); in ApplyOperator() 141 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_ELEMENT, 0, &idxP)); in ApplyOperator()
|
| H A D | ex11.c | 48 PetscCall(DMStagGetLocationSlot(dmSol, DMSTAG_LEFT, 0, &iux)); in main() 49 PetscCall(DMStagGetLocationSlot(dmSol, DMSTAG_DOWN, 0, &iuy)); in main() 50 PetscCall(DMStagGetLocationSlot(dmSol, DMSTAG_ELEMENT, 0, &ip)); in main() 133 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_LEFT, 0, &idxUx)); in ApplyOperator() 134 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_DOWN, 0, &idxUy)); in ApplyOperator() 135 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_ELEMENT, 0, &idxP)); in ApplyOperator()
|
| H A D | ex13.c | 148 if (dof0 > 0) PetscCall(DMStagGetLocationSlot(dm, DMSTAG_LEFT, 0, &idxLeft)); in Test2_1d() 149 if (dof1 > 0) PetscCall(DMStagGetLocationSlot(dm, DMSTAG_ELEMENT, 0, &idxElement)); in Test2_1d() 209 if (dof0 > 0) PetscCall(DMStagGetLocationSlot(dm, DMSTAG_DOWN_LEFT, 0, &idxDownLeft)); in Test2_2d() 211 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_LEFT, 0, &idxLeft)); in Test2_2d() 212 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_DOWN, 0, &idxDown)); in Test2_2d() 214 if (dof2 > 0) PetscCall(DMStagGetLocationSlot(dm, DMSTAG_ELEMENT, 0, &idxElement)); in Test2_2d() 315 if (dof0 > 0) PetscCall(DMStagGetLocationSlot(dm, DMSTAG_BACK_DOWN_LEFT, 0, &idxBackDownLeft)); in Test2_3d() 317 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_BACK_LEFT, 0, &idxBackLeft)); in Test2_3d() 318 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_BACK_DOWN, 0, &idxBackDown)); in Test2_3d() 319 PetscCall(DMStagGetLocationSlot(dm, DMSTAG_DOWN_LEFT, 0, &idxDownLeft)); in Test2_3d() [all …]
|
| H A D | ex5.c | 45 PetscCall(DMStagGetLocationSlot(dmSol, LEFT, 0, &iu)); in main() 46 PetscCall(DMStagGetLocationSlot(dmSol, ELEMENT, 0, &ip)); in main() 130 PetscCall(DMStagGetLocationSlot(dm, LEFT, 0, &idxU)); in ApplyOperator() 131 PetscCall(DMStagGetLocationSlot(dm, ELEMENT, 0, &idxP)); in ApplyOperator()
|
| H A D | ex51.c | 27 PetscCall(DMStagGetLocationSlot(dm, location_vertex, 1, &slot_vertex_2)); in main()
|
| H A D | ex30.c | 88 PetscCall(DMStagGetLocationSlot(dmCoord, ELEMENT, d, &icp[d])); in CreateMat() 89 PetscCall(DMStagGetLocationSlot(dmCoord, LEFT, d, &icux[d])); in CreateMat() 90 PetscCall(DMStagGetLocationSlot(dmCoord, DOWN, d, &icuy[d])); in CreateMat() 91 PetscCall(DMStagGetLocationSlot(dmCoord, BACK, d, &icuz[d])); in CreateMat() 92 PetscCall(DMStagGetLocationSlot(dmCoord, RIGHT, d, &icux_right[d])); in CreateMat() 93 PetscCall(DMStagGetLocationSlot(dmCoord, UP, d, &icuy_up[d])); in CreateMat() 94 PetscCall(DMStagGetLocationSlot(dmCoord, FRONT, d, &icuz_front[d])); in CreateMat() 1654 PetscCall(DMStagGetLocationSlot(dmCoord, ELEMENT, d, &icp[d])); in CheckMat() 1655 PetscCall(DMStagGetLocationSlot(dmCoord, LEFT, d, &icux[d])); in CheckMat() 1656 PetscCall(DMStagGetLocationSlot(dmCoord, DOWN, d, &icuy[d])); in CheckMat() [all …]
|
| /petsc/src/dm/impls/stag/ |
| H A D | stag1d.c | 69 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_LEFT, 0, &ileftf)); in DMStagRestrictSimple_1d() 70 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_ELEMENT, 0, &ielemf)); in DMStagRestrictSimple_1d() 71 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_LEFT, 0, &ileftc)); in DMStagRestrictSimple_1d() 72 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_ELEMENT, 0, &ielemc)); in DMStagRestrictSimple_1d() 108 if (stagCoord->dof[0]) PetscCall(DMStagGetLocationSlot(dmCoord, DMSTAG_LEFT, 0, &ileft)); in DMStagSetUniformCoordinatesExplicit_1d() 109 if (stagCoord->dof[1]) PetscCall(DMStagGetLocationSlot(dmCoord, DMSTAG_ELEMENT, 0, &ielement)); in DMStagSetUniformCoordinatesExplicit_1d()
|
| H A D | stag2d.c | 76 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN_LEFT, 0, &idownleftf)); in DMStagRestrictSimple_2d() 77 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_LEFT, 0, &ileftf)); in DMStagRestrictSimple_2d() 78 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN, 0, &idownf)); in DMStagRestrictSimple_2d() 79 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_ELEMENT, 0, &ielemf)); in DMStagRestrictSimple_2d() 80 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_DOWN_LEFT, 0, &idownleftc)); in DMStagRestrictSimple_2d() 81 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_LEFT, 0, &ileftc)); in DMStagRestrictSimple_2d() 82 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_DOWN, 0, &idownc)); in DMStagRestrictSimple_2d() 83 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_ELEMENT, 0, &ielemc)); in DMStagRestrictSimple_2d() 147 if (stagCoord->dof[0]) PetscCall(DMStagGetLocationSlot(dmCoord, DMSTAG_DOWN_LEFT, 0, &idownleft)); in DMStagSetUniformCoordinatesExplicit_2d() 149 PetscCall(DMStagGetLocationSlot(dmCoord, DMSTAG_DOWN, 0, &idown)); in DMStagSetUniformCoordinatesExplicit_2d() [all …]
|
| H A D | stagda.c | 336 PetscCall(DMStagGetLocationSlot(dmstagCoord, loc, 0, &slot)); in DMStagTransferCoordinatesToDMDA() 354 PetscCall(DMStagGetLocationSlot(dmstagCoord, loc, 0, &slot)); in DMStagTransferCoordinatesToDMDA() 381 PetscCall(DMStagGetLocationSlot(dmstagCoord, loc, 0, &slot)); in DMStagTransferCoordinatesToDMDA()
|
| H A D | stag3d.c | 85 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK_DOWN_LEFT, 0, &ibackdownleftf)); in DMStagRestrictSimple_3d() 86 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK_DOWN, 0, &ibackdownf)); in DMStagRestrictSimple_3d() 87 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK_LEFT, 0, &ibackleftf)); in DMStagRestrictSimple_3d() 88 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK, 0, &ibackf)); in DMStagRestrictSimple_3d() 89 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN_LEFT, 0, &idownleftf)); in DMStagRestrictSimple_3d() 90 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN, 0, &idownf)); in DMStagRestrictSimple_3d() 91 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_LEFT, 0, &ileftf)); in DMStagRestrictSimple_3d() 92 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_ELEMENT, 0, &ielemf)); in DMStagRestrictSimple_3d() 93 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_BACK_DOWN_LEFT, 0, &ibackdownleftc)); in DMStagRestrictSimple_3d() 94 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_BACK_DOWN, 0, &ibackdownc)); in DMStagRestrictSimple_3d() [all …]
|
| H A D | stagutils.c | 223 PetscCall(DMStagGetLocationSlot(subDM, loc, component, slot)); in DMStagGetProductCoordinateLocationSlot() 741 PetscErrorCode DMStagGetLocationSlot(DM dm, DMStagStencilLocation loc, PetscInt c, PetscInt *slot) in DMStagGetLocationSlot() function
|
| /petsc/include/ |
| H A D | petscdmstag.h | 110 PETSC_EXTERN PetscErrorCode DMStagGetLocationSlot(DM, DMStagStencilLocation, PetscInt, PetscInt *);
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdmstag.pxi | 65 PetscErrorCode DMStagGetLocationSlot(PetscDM, PetscDMStagStencilLocation, PetscInt, PetscInt*)
|
| H A D | DMStag.pyx | 692 petsc.DMStagGetLocationSlot 698 CHKERR(DMStagGetLocationSlot(self.dm, sloc, comp, &slot))
|
| /petsc/doc/manual/ |
| H A D | dmcommonality.md | 41 number of numerical values associated with a given entity type, the function `DMStagGetLocationSlot…
|