Searched refs:coords_size (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/vec/is/utils/tests/ |
| H A D | ex1.c | 18 PetscInt coords_size, num_points_queried = 0, num_trees_built = 0, loops = 1; in main() local 42 coords_size = num_coords * dim; in main() 43 PetscCall(PetscMalloc1(coords_size, &coords)); in main() 47 PetscCall(PetscRandomGetValuesReal(random, coords_size, coords)); in main()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex103.c | 177 PetscInt coords_size, num_coords; in DMPlexGetPointsCentroids() local 179 …PetscCall(DMPlexVecGetClosureAtDepth(dm, coord_section, coords_vec, p, depth, &coords_size, &coord… in DMPlexGetPointsCentroids() 180 num_coords = coords_size / coords_dim; in DMPlexGetPointsCentroids() 185 PetscCall(DMPlexVecRestoreClosure(dm, coord_section, coords_vec, p, &coords_size, &coords)); in DMPlexGetPointsCentroids()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsfc.c | 710 PetscInt cl_point = closure[2 * p], coords_size, donor_vertex = -1; in DMPlexCorrectOrientationForIsoperiodic() local 714 … PetscCall(DMPlexVecGetClosure(dm, csection, coordinates, cl_point, &coords_size, &coords)); in DMPlexCorrectOrientationForIsoperiodic() 715 …coords_size == dim, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Point %" PetscInt_FMT " has dof size %" Pets… in DMPlexCorrectOrientationForIsoperiodic() 719 …for (PetscInt d = 0; d < coords_size; d++) dist_sqr += PetscSqr(PetscRealPart(coords[d]) - leaf_do… in DMPlexCorrectOrientationForIsoperiodic() 733 … PetscCall(DMPlexVecRestoreClosure(dm, csection, coordinates, cl_point, &coords_size, &coords)); in DMPlexCorrectOrientationForIsoperiodic()
|
| H A D | plexcreate.c | 1055 PetscInt face = faces[f], flip = 1, label_value = -1, coords_size; in DMPlexSetBoxLabel_Internal() local 1076 … PetscCall(DMPlexVecGetClosureAtDepth(cdm, csection, coordinates, face, 0, &coords_size, &coords)); in DMPlexSetBoxLabel_Internal() 1122 PetscCall(DMPlexVecRestoreClosure(cdm, csection, coordinates, face, &coords_size, &coords)); in DMPlexSetBoxLabel_Internal() 1148 PetscInt coords_size, centroid_comps = dim - 1; in DMPlexSetBoxLabel_Internal() local 1166 … PetscCall(DMPlexVecGetClosureAtDepth(cdm, csection, coordinates, face, 0, &coords_size, &coords)); in DMPlexSetBoxLabel_Internal() 1167 num_coords = coords_size / dim; in DMPlexSetBoxLabel_Internal() 1177 PetscCall(DMPlexVecRestoreClosure(cdm, csection, coordinates, face, &coords_size, &coords)); in DMPlexSetBoxLabel_Internal() 1182 … PetscCall(DMPlexVecGetClosureAtDepth(cdm, csection, coordinates, face, 0, &coords_size, &coords)); in DMPlexSetBoxLabel_Internal() 1183 num_coords = coords_size / dim; in DMPlexSetBoxLabel_Internal() 1193 PetscCall(DMPlexVecRestoreClosure(cdm, csection, coordinates, face, &coords_size, &coords)); in DMPlexSetBoxLabel_Internal()
|