| /petsc/src/dm/impls/plex/ |
| H A D | plexgenerate.c | 161 PetscErrorCode DMPlexGenerate(DM boundary, const char name[], PetscBool interpolate, DM *mesh) in DMPlexGenerate() argument 170 PetscValidHeaderSpecific(boundary, DM_CLASSID, 1); in DMPlexGenerate() 171 PetscValidLogicalCollectiveBool(boundary, interpolate, 3); in DMPlexGenerate() 172 PetscCall(DMGetDimension(boundary, &dim)); in DMPlexGenerate() 173 …PetscCall(PetscOptionsGetString(((PetscObject)boundary)->options, ((PetscObject)boundary)->prefix,… in DMPlexGenerate() 176 …PetscCall(PetscOptionsGetString(((PetscObject)boundary)->options, ((PetscObject)boundary)->prefix,… in DMPlexGenerate() 185 PetscCall((*fl->generate)(boundary, interpolate, mesh)); in DMPlexGenerate() 193 if (boundary->dim == fl->dim) { in DMPlexGenerate() 194 PetscCall((*fl->generate)(boundary, interpolate, mesh)); in DMPlexGenerate() 200 …if (boundary->dim + 1 == 2) suggestions = " You may need to add --download-triangle to your ./conf… in DMPlexGenerate() [all …]
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmda.py | 34 boundary = self.da.getBoundaryType() 40 self.assertEqual(boundary, self.BOUNDARY or (0,) * dim) 482 for boundary in BOUNDARY_TYPE: 483 if isinstance(boundary, tuple): 484 boundary = boundary[:dim] variable 491 'boundary_type': boundary, 504 del counter, dim, dof, boundary, stencil, width 514 for boundary in BOUNDARY_TYPE: 515 if isinstance(boundary, tuple): 516 boundary = boundary[:dim] variable [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdm.pxi | 212 cdef inline PetscDMBoundaryType asBoundaryType(object boundary) \ argument 214 if boundary is None: 216 if boundary is False: 218 if boundary is True: 220 if isinstance(boundary, str): 221 if boundary == 'none': 223 elif boundary == 'ghosted': 225 elif boundary == 'mirror': 227 elif boundary == 'periodic': 229 elif boundary == 'twist': [all …]
|
| /petsc/src/dm/impls/plex/generators/triangle/ |
| H A D | trigenerate.c | 61 PETSC_EXTERN PetscErrorCode DMPlexGenerate_Triangle(DM boundary, PetscBool interpolate, DM *dm) in DMPlexGenerate_Triangle() argument 64 DM_Plex *mesh = (DM_Plex *)boundary->data; in DMPlexGenerate_Triangle() 79 PetscCall(PetscObjectGetComm((PetscObject)boundary, &comm)); in DMPlexGenerate_Triangle() 83 PetscCall(DMPlexGetDepthStratum(boundary, 0, &vStart, &vEnd)); in DMPlexGenerate_Triangle() 84 PetscCall(DMGetLabel(boundary, labelName, &label)); in DMPlexGenerate_Triangle() 85 PetscCall(DMGetLabel(boundary, labelName2, &label2)); in DMPlexGenerate_Triangle() 86 …PetscCall(PetscOptionsGetString(((PetscObject)boundary)->options, ((PetscObject)boundary)->prefix,… in DMPlexGenerate_Triangle() 87 if (flg) PetscCall(DMPlexTriangleSetOptions(boundary, opts)); in DMPlexGenerate_Triangle() 97 PetscCall(DMGetCoordinatesLocal(boundary, &coordinates)); in DMPlexGenerate_Triangle() 98 PetscCall(DMGetCoordinateSection(boundary, &coordSection)); in DMPlexGenerate_Triangle() [all …]
|
| /petsc/src/binding/petsc4py/docs/ipynb/ |
| H A D | dmplex.ipynb | 313 …"We can also use labels to mark, say, boundary edges. These are the edges with only 1 entry in the… 325 "point = 0 \tlabel(boundary) = -1\n", 326 "point = 1 \tlabel(boundary) = -1\n", 327 "point = 2 \tlabel(boundary) = -1\n", 328 "point = 3 \tlabel(boundary) = -1\n", 329 "point = 4 \tlabel(boundary) = -1\n", 330 "point = 5 \tlabel(boundary) = -1\n", 331 "point = 6 \tlabel(boundary) = -1\n", 332 "point = 7 \tlabel(boundary) = -1\n", 333 "point = 8 \tlabel(boundary) = -1\n", [all …]
|
| /petsc/src/dm/impls/plex/generators/tetgen/ |
| H A D | tetgenerate.cxx | 43 PETSC_EXTERN PetscErrorCode DMPlexGenerate_Tetgen(DM boundary, PetscBool interpolate, DM *dm) in DMPlexGenerate_Tetgen() argument 58 PetscCall(PetscObjectGetComm((PetscObject)boundary, &comm)); in DMPlexGenerate_Tetgen() 60 PetscCall(DMPlexIsInterpolatedCollective(boundary, &isInterpolated)); in DMPlexGenerate_Tetgen() 61 PetscCall(DMUniversalLabelCreate(boundary, &universal)); in DMPlexGenerate_Tetgen() 63 …PetscCall(PetscOptionsGetString(((PetscObject)boundary)->options, ((PetscObject)boundary)->prefix,… in DMPlexGenerate_Tetgen() 64 if (flg) PetscCall(DMPlexTetgenSetOptions(boundary, opts)); in DMPlexGenerate_Tetgen() 66 PetscCall(DMPlexGetDepthStratum(boundary, 0, &vStart, &vEnd)); in DMPlexGenerate_Tetgen() 77 PetscCall(DMGetCoordinatesLocal(boundary, &coordinates)); in DMPlexGenerate_Tetgen() 78 PetscCall(DMGetCoordinateSection(boundary, &coordSection)); in DMPlexGenerate_Tetgen() 92 PetscCall(DMPlexGetHeightStratum(boundary, 1, &eStart, &eEnd)); in DMPlexGenerate_Tetgen() [all …]
|
| /petsc/src/snes/tutorials/output/ |
| H A D | ex28_glvis_composite_da_1d.out | 28 boundary 106 boundary
|
| H A D | ex56_0.out | 14 boundary: 1 strata with value/size (1 (23)) 29 boundary: 1 strata with value/size (1 (77)) 45 boundary: 1 strata with value/size (1 (77)) 60 boundary: 1 strata with value/size (1 (281))
|
| H A D | ex56_mpiaijmkl.out | 13 boundary: 1 strata with value/size (1 (4)) 27 boundary: 1 strata with value/size (1 (77))
|
| H A D | ex56_seqaijmkl.out | 13 boundary: 1 strata with value/size (1 (16)) 27 boundary: 1 strata with value/size (1 (258))
|
| /petsc/src/ts/tutorials/output/ |
| H A D | ex12_glvis_da_2d_vect.out | 142 boundary 774 boundary
|
| H A D | ex12_glvis_da_2d_vect_ll.out | 142 boundary 774 boundary
|
| /petsc/src/dm/impls/swarm/tests/output/ |
| H A D | ex1_swarm_migrate_hash_tensor_permutation.out | 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_vec_hip_hash.out | 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_hash.out | 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_vec_hip_hash_tensor_permutation.out | 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_scan.out | 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_scan_tensor_permutation.out | 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_vec_hip_scan.out | 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| /petsc/src/dm/impls/plex/generators/ctetgen/ |
| H A D | ctetgenerate.c | 26 PETSC_EXTERN PetscErrorCode DMPlexGenerate_CTetgen(DM boundary, PetscBool interpolate, DM *dm) in DMPlexGenerate_CTetgen() argument 37 …PetscCall(PetscOptionsGetInt(NULL, ((PetscObject)boundary)->prefix, "-ctetgen_verbose", &verbose, … in DMPlexGenerate_CTetgen() 38 PetscCall(PetscObjectGetComm((PetscObject)boundary, &comm)); in DMPlexGenerate_CTetgen() 40 PetscCall(DMPlexIsInterpolatedCollective(boundary, &isInterpolated)); in DMPlexGenerate_CTetgen() 41 PetscCall(DMUniversalLabelCreate(boundary, &universal)); in DMPlexGenerate_CTetgen() 47 PetscCall(DMPlexGetDepthStratum(boundary, 0, &vStart, &vEnd)); in DMPlexGenerate_CTetgen() 56 PetscCall(DMGetCoordinatesLocal(boundary, &coordinates)); in DMPlexGenerate_CTetgen() 57 PetscCall(DMGetCoordinateSection(boundary, &coordSection)); in DMPlexGenerate_CTetgen() 71 PetscCall(DMPlexGetHeightStratum(boundary, 1, &eStart, &eEnd)); in DMPlexGenerate_CTetgen() 81 PetscCall(DMPlexGetConeSize(boundary, e, &coneSize)); in DMPlexGenerate_CTetgen() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex17.c | 38 PetscInt boundary; /* Type of boundary condition */ member 75 user.boundary = 0; /* 0: Dirichlet BC; 1: Neumann BC */ in main() 78 PetscCall(PetscOptionsGetInt(NULL, NULL, "-boundary", &user.boundary, NULL)); in main() 192 if (user->boundary == 0) { /* Dirichlet BC */ in FormIFunction() 233 if (user->boundary == 0 && (i == 0 || i == Mx - 1)) { in FormIJacobian() 236 } else if (user->boundary > 0 && i == 0) { /* Left Neumann */ in FormIJacobian() 241 } else if (user->boundary > 0 && i == Mx - 1) { /* Right Neumann */ in FormIJacobian()
|
| H A D | ex15.c | 35 PetscInt boundary; /* Type of boundary condition */ member 63 user.boundary = 0; /* 0: Drichlet BC; 1: Neumann BC */ in main() 67 PetscCall(PetscOptionsGetInt(NULL, NULL, "-boundary", &user.boundary, NULL)); in main() 196 if (user->boundary == 0) { /* Drichlet BC */ in FormIFunction() 268 if (user->boundary == 0 && (i == 0 || i == Mx - 1 || j == 0 || j == My - 1)) { in FormIJacobian() 273 } else if (user->boundary > 0 && i == 0) { /* Left Neumann */ in FormIJacobian() 280 } else if (user->boundary > 0 && i == Mx - 1) { /* Right Neumann */ in FormIJacobian() 287 } else if (user->boundary > 0 && j == 0) { /* Bottom Neumann */ in FormIJacobian() 294 } else if (user->boundary > 0 && j == My - 1) { /* Top Neumann */ in FormIJacobian()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex4.c | 466 PetscScalar *boundary; in FormBoundaryConditions_Enneper() local 493 boundary = user->bottom; in FormBoundaryConditions_Enneper() 498 boundary = user->top; in FormBoundaryConditions_Enneper() 503 boundary = user->left; in FormBoundaryConditions_Enneper() 508 boundary = user->right; in FormBoundaryConditions_Enneper() 528 boundary[i] = u1 * u1 - u2 * u2; in FormBoundaryConditions_Enneper() 556 PetscScalar *boundary; in FormBoundaryConditions_Sins() local 584 boundary = user->bottom; in FormBoundaryConditions_Sins() 589 boundary = user->top; in FormBoundaryConditions_Sins() 594 boundary = user->left; in FormBoundaryConditions_Sins() [all …]
|
| H A D | ex5m.m | 10 % copy over any potential boundary values 26 % (with or without any of the true boundary)
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex1.c | 95 DMBoundaryType boundary; in main() local 115 PetscCall(DMStagGetBoundaryTypes(dmSol, &boundary, NULL, NULL)); in main() 122 if (boundary == DM_BOUNDARY_PERIODIC) { in main() 218 if (boundary != DM_BOUNDARY_PERIODIC && isLastRank && e == start + n - 1) { in main() 264 if (boundary == DM_BOUNDARY_PERIODIC && PetscRealPart(h) < 0.0) h += domainSize; in main() 280 if (boundary != DM_BOUNDARY_PERIODIC && isLastRank && e == start + n - 1) { in main() 310 if (boundary == DM_BOUNDARY_PERIODIC && PetscRealPart(h) < 0.0) h += domainSize; in main()
|