Home
last modified time | relevance | path

Searched refs:numCoords (Results 1 – 5 of 5) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex17.c116 PetscInt numCoords; in TestCustomLocation() local
121 PetscCall(DMPlexGetCellCoordinates(dm, cells[p].index, &isDG, &numCoords, &array, &ccoords)); in TestCustomLocation()
122 for (PetscInt c = 0; c < numCoords / cdim; ++c) { in TestCustomLocation()
127 … PetscCall(DMPlexRestoreCellCoordinates(dm, cells[p].index, &isDG, &numCoords, &array, &ccoords)); in TestCustomLocation()
/petsc/src/dm/impls/plex/
H A Dplexgeometry.c273 PetscInt numCoords; in DMPlexGetPlaneSimplexIntersection_Internal() local
280 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneSimplexIntersection_Internal()
281numCoords == dim * (dim + 1), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Tetrahedron should have %" Pe… in DMPlexGetPlaneSimplexIntersection_Internal()
286 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneSimplexIntersection_Internal()
294 PetscInt numCoords; in DMPlexGetPlaneQuadIntersection_Internal() local
305 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneQuadIntersection_Internal()
306numCoords == dim * 4, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Quadrilateral should have %" PetscInt… in DMPlexGetPlaneQuadIntersection_Internal()
317 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneQuadIntersection_Internal()
325 PetscInt numCoords; in DMPlexGetPlaneHexIntersection_Internal() local
341 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneHexIntersection_Internal()
[all …]
H A Dplexfluent.c148 PetscInt numCoords = s->last - s->first + 1; in DMPlexCreateFluent_ReadSection() local
150 PetscCall(PetscMalloc1(s->nd * numCoords, (PetscScalar **)&s->data)); in DMPlexCreateFluent_ReadSection()
151 …PetscCall(DMPlexCreateFluent_ReadValues(viewer, s->data, s->nd * numCoords, PETSC_SCALAR, s->index… in DMPlexCreateFluent_ReadSection()
H A Dplex.c492 PetscInt numCoords; in VecView_Plex_Local_Draw_2D() local
531 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &coords_arr, &coords)); in VecView_Plex_Local_Draw_2D()
532 switch (numCoords) { in VecView_Plex_Local_Draw_2D()
547 …PETSC_COMM_SELF, PETSC_ERR_SUP, "Cannot draw cells with %" PetscInt_FMT " coordinates", numCoords); in VecView_Plex_Local_Draw_2D()
549 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &coords_arr, &coords)); in VecView_Plex_Local_Draw_2D()
1432 PetscInt numCoords, cdim, d; in DMPlexView_Ascii() local
1437 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &cellCoords)); in DMPlexView_Ascii()
1438 …(numCoords % cdim), PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "coordinate dim %" PetscInt_FMT " does … in DMPlexView_Ascii()
1440 for (p = 0; p < numCoords / cdim; ++p) { in DMPlexView_Ascii()
1453 for (d = 0; d < cdim; ++d) ccoords[d] /= (numCoords / cdim); in DMPlexView_Ascii()
[all …]
/petsc/doc/manual/
H A Ddmplex.md131 PetscInt numCoords;
134 PetscCall(DMPlexGetCellCoordinates(dm, cell, &isDG, &numCoords, &array, &coords));
135 for (PetscInt cc = 0; cc < numCoords/dim; ++cc) {
145 PetscCall(DMPlexRestoreCellCoordinates(dm, cell, &isDG, &numCoords, &array, &coords));