Home
last modified time | relevance | path

Searched refs:coordSize (Results 1 – 13 of 13) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex75.c8 PetscInt dim = 1, d, cStart, cEnd, c, q, degree = 2, coordSize, offset; in main() local
43 PetscCall(PetscSectionGetStorageSize(coordSec, &coordSize)); in main()
47 PetscCall(VecSetSizes(coordVec, coordSize, PETSC_DETERMINE)); in main()
H A Dex8.c111 PetscInt vStart, vEnd, v, d, coordSize; in ChangeCoordinates() local
124 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in ChangeCoordinates()
127 PetscCall(VecSetSizes(coordinates, coordSize, PETSC_DETERMINE)); in ChangeCoordinates()
247 PetscInt coordSize, numCorners, t; in CheckCell() local
251 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordinates, cell, &coordSize, &coords)); in CheckCell()
252 PetscCall(PetscMalloc2(coordSize, &origCoords, coordSize, &newCoords)); in CheckCell()
255 for (c = 0; c < coordSize; ++c) origCoords[c] = coords[c]; in CheckCell()
256 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordinates, cell, &coordSize, &coords)); in CheckCell()
257 numCorners = coordSize / cdim; in CheckCell()
274 for (c = 0; c < coordSize; ++c) newCoords[c] = origCoords[c]; in CheckCell()
/petsc/src/dm/impls/plex/generators/ctetgen/
H A Dctetgenerate.c240 PetscInt coordSize, s, d; in DMPlexGenerate_CTetgen() local
244 PetscCall(DMPlexVecGetClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_CTetgen()
245 for (s = 0; s < coordSize; ++s) in DMPlexGenerate_CTetgen()
247 … PetscCall(DMPlexVecRestoreClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_CTetgen()
515 PetscInt coordSize, s, d; in DMPlexRefine_CTetgen() local
519 … PetscCall(DMPlexVecGetClosure(*dmRefined, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexRefine_CTetgen()
520 for (s = 0; s < coordSize; ++s) in DMPlexRefine_CTetgen()
522 … PetscCall(DMPlexVecRestoreClosure(*dmRefined, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexRefine_CTetgen()
/petsc/src/dm/impls/plex/generators/tetgen/
H A Dtetgenerate.cxx265 PetscInt coordSize, s, d; in DMPlexGenerate_Tetgen() local
269 PetscCall(DMPlexVecGetClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_Tetgen()
270 for (s = 0; s < coordSize; ++s) in DMPlexGenerate_Tetgen()
272 … PetscCall(DMPlexVecRestoreClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_Tetgen()
544 PetscInt coordSize, s, d; in DMPlexRefine_Tetgen() local
548 … PetscCall(DMPlexVecGetClosure(*dmRefined, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexRefine_Tetgen()
549 for (s = 0; s < coordSize; ++s) in DMPlexRefine_Tetgen()
551 … PetscCall(DMPlexVecRestoreClosure(*dmRefined, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexRefine_Tetgen()
/petsc/src/dm/impls/plex/
H A Dplexply.c26 PetscInt dim = 2, cdim = 3, Nvp = 0, coordSize, xi = -1, yi = -1, zi = -1, v, c, p; in DMPlexCreatePLYFromFile() local
145 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreatePLYFromFile()
148 PetscCall(VecSetSizes(coordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreatePLYFromFile()
H A Dplexgeometry.c1564 PetscErrorCode DMPlexComputeProjection3Dto2D(PetscInt coordSize, PetscScalar coords[], PetscReal R[… in DMPlexComputeProjection3Dto2D() argument
1594 for (p = 0; p < coordSize / dim; p++) { in DMPlexComputeProjection3Dto2D()
2691 PetscInt cdim, coordSize, d; in DMPlexComputeGeometryFVM_1D_Internal() local
2696 PetscCall(DMPlexGetCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_1D_Internal()
2697 …PetscCheck(coordSize == cdim * 2, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Edge has %" PetscInt_FMT … in DMPlexComputeGeometryFVM_1D_Internal()
2725 PetscCall(DMPlexRestoreCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_1D_Internal()
2735 PetscInt coordSize; in DMPlexComputeGeometryFVM_2D_Internal() local
2753 PetscCall(DMPlexGetCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_2D_Internal()
2790 PetscCall(DMPlexRestoreCellCoordinates(dm, cell, &isDG, &coordSize, &array, &coords)); in DMPlexComputeGeometryFVM_2D_Internal()
2800 PetscInt coordSize; in DMPlexComputeGeometryFVM_3D_Internal() local
[all …]
H A Dplexcreate.c541 PetscInt coordSize; in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal() local
571 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
574 PetscCall(VecSetSizes(coordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
598 PetscInt coordSize; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal() local
683 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
686 PetscCall(VecSetSizes(coordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
716 PetscInt coordSize; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal() local
865 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
868 PetscCall(VecSetSizes(coordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
1307 PetscInt coordSize; in DMPlexCreateSquareMesh_Simplex_CrissCross() local
[all …]
H A Dplexfluent.c702 PetscInt coordSize, maxFaceSize = 0, totFaceVert = 0, f; in DMPlexCreateFluent() local
952 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreateFluent()
955 PetscCall(VecSetSizes(coordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreateFluent()
H A Dplexsubmesh.c633 PetscInt coordSize, sStart, sEnd; in DMPlexShiftCoordinates_Internal() local
668 PetscCall(PetscSectionGetStorageSize(newCoordSection, &coordSize)); in DMPlexShiftCoordinates_Internal()
671 PetscCall(VecSetSizes(newCoordinates, coordSize, PETSC_DETERMINE)); in DMPlexShiftCoordinates_Internal()
3238 PetscInt numComp, coordSize, v; in DMPlexCreateSubmesh_Uninterpolated() local
3258 PetscCall(PetscSectionGetStorageSize(subCoordSection, &coordSize)); in DMPlexCreateSubmesh_Uninterpolated()
3262 PetscCall(VecSetSizes(subCoordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreateSubmesh_Uninterpolated()
3264 if (coordSize) { in DMPlexCreateSubmesh_Uninterpolated()
3569 …PetscInt bs, numComp, coordSize, firstP, lastP, firstSubP = totSubPoints, lastSubP = -1, numFi… in DMPlexCreateSubmeshGeneric_Interpolated() local
3662 PetscCall(PetscSectionGetStorageSize(subCoordSection, &coordSize)); in DMPlexCreateSubmeshGeneric_Interpolated()
3666 PetscCall(VecSetSizes(subCoordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreateSubmeshGeneric_Interpolated()
[all …]
/petsc/src/snes/utils/dm/
H A Ddminterpolatesnes.c544 PetscInt coordSize, xSize; in DMInterpolate_Quad_Private() local
581 PetscCall(DMPlexVecGetClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Quad_Private()
582 …PetscCheck(4 * 2 == coordSize, ctx->comm, PETSC_ERR_ARG_SIZ, "Invalid closure size %" PetscInt_FMT… in DMInterpolate_Quad_Private()
609 PetscCall(DMPlexVecRestoreClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Quad_Private()
775 PetscInt coordSize, xSize; in DMInterpolate_Hex_Private() local
800 PetscCall(DMPlexVecGetClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Hex_Private()
801 …tscCheck(8 * 3 == coordSize, ctx->comm, PETSC_ERR_ARG_SIZ, "Invalid coordinate closure size %" Pet… in DMInterpolate_Hex_Private()
825 PetscCall(DMPlexVecRestoreClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Hex_Private()
/petsc/src/dm/interface/
H A Ddmperiodicity.c339 … Nc, vStart, vEnd, sStart, sEnd, newStart = PETSC_INT_MAX, newEnd = PETSC_INT_MIN, bs, coordSize; in DMLocalizeCoordinates() local
416 PetscCall(PetscSectionGetStorageSize(csDG, &coordSize)); in DMLocalizeCoordinates()
420 PetscCall(VecSetSizes(cVec, coordSize, PETSC_DETERMINE)); in DMLocalizeCoordinates()
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c1330 PetscInt vStart, vEnd, v, bs, N, coordSize, dof, off, d; in DMPlexCoordinatesView_HDF5_XDMF_Private() local
1368 coordSize = 0; in DMPlexCoordinatesView_HDF5_XDMF_Private()
1385 ncoords[coordSize++] = PetscSinReal(phi) * r; in DMPlexCoordinatesView_HDF5_XDMF_Private()
1386 ncoords[coordSize++] = -PetscCosReal(theta) * (R + r * PetscCosReal(phi)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1387 ncoords[coordSize++] = PetscSinReal(theta) * (R + r * PetscCosReal(phi)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1390 …ncoords[coordSize++] = -PetscCosReal(2.0 * PETSC_PI * PetscRealPart(coords[off + 0]) / L[0]) * (L[… in DMPlexCoordinatesView_HDF5_XDMF_Private()
1391 ncoords[coordSize++] = coords[off + 1]; in DMPlexCoordinatesView_HDF5_XDMF_Private()
1392 …ncoords[coordSize++] = PetscSinReal(2.0 * PETSC_PI * PetscRealPart(coords[off + 0]) / L[0]) * (L[0… in DMPlexCoordinatesView_HDF5_XDMF_Private()
1395 ncoords[coordSize++] = coords[off + 0]; in DMPlexCoordinatesView_HDF5_XDMF_Private()
1396 …ncoords[coordSize++] = PetscSinReal(2.0 * PETSC_PI * PetscRealPart(coords[off + 1]) / L[1]) * (L[1… in DMPlexCoordinatesView_HDF5_XDMF_Private()
[all …]
/petsc/src/dm/impls/plex/exodusii/
H A Dplexexodusii2.c1672 PetscInt coordSize, v; in DMPlexCreateExodus() local
1820 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreateExodus()
1823 PetscCall(VecSetSizes(coordinates, coordSize, PETSC_DETERMINE)); in DMPlexCreateExodus()