Home
last modified time | relevance | path

Searched refs:bbox (Results 1 – 4 of 4) sorted by relevance

/petsc/src/vec/is/sf/utils/
H A Dsfcoord.c3 …e GetBoundingBox_Internal(PetscInt npoints, PetscInt dim, const PetscReal *coords, PetscReal *bbox) in GetBoundingBox_Internal() argument
7 bbox[0 * dim + d] = PETSC_MAX_REAL; in GetBoundingBox_Internal()
8 bbox[1 * dim + d] = PETSC_MIN_REAL; in GetBoundingBox_Internal()
12 bbox[0 * dim + d] = PetscMin(bbox[0 * dim + d], coords[i * dim + d]); in GetBoundingBox_Internal()
13 bbox[1 * dim + d] = PetscMax(bbox[1 * dim + d], coords[i * dim + d]); in GetBoundingBox_Internal()
27 static PetscBool InBoundingBox_Internal(PetscInt dim, const PetscReal *x, const PetscReal *bbox, Pe… in InBoundingBox_Internal() argument
30 if (x[d] + tol < bbox[0 * dim + d] || bbox[1 * dim + d] + tol < x[d]) return PETSC_FALSE; in InBoundingBox_Internal()
120 PetscReal bbox[6], *bboxes, *target_coords; in PetscSFSetGraphFromCoordinates() local
135 PetscCall(GetBoundingBox_Internal(nroots, dim, rootcoords, bbox)); in PetscSFSetGraphFromCoordinates()
139 PetscCallMPI(MPI_Allgather(bbox, msize, MPIU_REAL, bboxes, msize, MPIU_REAL, comm)); in PetscSFSetGraphFromCoordinates()
[all …]
/petsc/src/snes/tutorials/
H A Dex4.c47 PetscReal bbox[4] = {0.}; in main() local
60 bbox[0] = -0.5; in main()
61 bbox[1] = 0.5; in main()
62 bbox[2] = -0.5; in main()
63 bbox[3] = 0.5; in main()
67 bbox[0] = 0.0; in main()
68 bbox[1] = 1.0; in main()
69 bbox[2] = 0.0; in main()
70 bbox[3] = 1.0; in main()
79 …PetscCall(DMDASetUniformCoordinates(da, bbox[0], bbox[1], bbox[2], bbox[3], PETSC_DECIDE, PETSC_DE… in main()
/petsc/src/dm/impls/swarm/
H A Dswarm_migrate.c442 CollectBBox *bbox, *recv_bbox; in DMSwarmCollect_DMDABoundingBox() local
457 PetscCall(PetscMalloc1(1, &bbox)); in DMSwarmCollect_DMDABoundingBox()
458 bbox->owner_rank = rank; in DMSwarmCollect_DMDABoundingBox()
466 PetscCall(VecStrideMin(lcoor, 0, NULL, &bbox->min[0])); in DMSwarmCollect_DMDABoundingBox()
467 PetscCall(VecStrideMax(lcoor, 0, NULL, &bbox->max[0])); in DMSwarmCollect_DMDABoundingBox()
470 PetscCall(VecStrideMin(lcoor, 1, NULL, &bbox->min[1])); in DMSwarmCollect_DMDABoundingBox()
471 PetscCall(VecStrideMax(lcoor, 1, NULL, &bbox->max[1])); in DMSwarmCollect_DMDABoundingBox()
474 PetscCall(VecStrideMin(lcoor, 2, NULL, &bbox->min[2])); in DMSwarmCollect_DMDABoundingBox()
475 PetscCall(VecStrideMax(lcoor, 2, NULL, &bbox->max[2])); in DMSwarmCollect_DMDABoundingBox()
507 PetscCall(DMSwarmDataExPackData(de, nrank, 1, bbox)); in DMSwarmCollect_DMDABoundingBox()
[all …]
/petsc/src/dm/impls/plex/
H A Dplexgmsh.c396 double bbox[6]; /* Bounding box */ member
679 PetscCall(PetscViewerRead(viewer, entity->bbox, 6, NULL, PETSC_DOUBLE)); in GmshReadEntities_v40()
680 if (byteSwap) PetscCall(PetscByteSwap(entity->bbox, PETSC_DOUBLE, 6)); in GmshReadEntities_v40()
943 PetscCall(GmshReadDouble(gmsh, entity->bbox, (dim == 0) ? 3 : 6)); in GmshReadEntities_v41()