Home
last modified time | relevance | path

Searched refs:coordSection (Results 1 – 25 of 31) sorted by relevance

12

/petsc/src/dm/impls/plex/
H A Dplexply.c22 PetscSection coordSection; in DMPlexCreatePLYFromFile() local
136 PetscCall(DMGetCoordinateSection(*dm, &coordSection)); in DMPlexCreatePLYFromFile()
137 PetscCall(PetscSectionSetNumFields(coordSection, 1)); in DMPlexCreatePLYFromFile()
138 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, cdim)); in DMPlexCreatePLYFromFile()
139 PetscCall(PetscSectionSetChart(coordSection, Nc, Nc + Nv)); in DMPlexCreatePLYFromFile()
141 PetscCall(PetscSectionSetDof(coordSection, v, cdim)); in DMPlexCreatePLYFromFile()
142 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, cdim)); in DMPlexCreatePLYFromFile()
144 PetscCall(PetscSectionSetUp(coordSection)); in DMPlexCreatePLYFromFile()
145 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreatePLYFromFile()
H A Dplexcreate.c539 PetscSection coordSection; in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal() local
562 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
563 PetscCall(PetscSectionSetNumFields(coordSection, 1)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
564 PetscCall(PetscSectionSetChart(coordSection, 0, numVertices)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
565 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, cdim)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
567 PetscCall(PetscSectionSetDof(coordSection, v, cdim)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
568 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, cdim)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
570 PetscCall(PetscSectionSetUp(coordSection)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
571 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreateBoxSurfaceMesh_Tensor_1D_Internal()
596 PetscSection coordSection; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal() local
[all …]
H A Dplexadapt.c58 PetscSection coordSection; in DMPlexLabelToMetricConstraint() local
69 PetscCall(DMGetLocalSection(coordDM, &coordSection)); in DMPlexLabelToMetricConstraint()
86 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordinates, c, NULL, &cellCoords)); in DMPlexLabelToMetricConstraint()
110 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordinates, c, NULL, &cellCoords)); in DMPlexLabelToMetricConstraint()
H A Dplexfluent.c700 PetscSection coordSection; in DMPlexCreateFluent() local
943 PetscCall(DMGetCoordinateSection(*dm, &coordSection)); in DMPlexCreateFluent()
944 PetscCall(PetscSectionSetNumFields(coordSection, 1)); in DMPlexCreateFluent()
945 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, dim)); in DMPlexCreateFluent()
946 PetscCall(PetscSectionSetChart(coordSection, numCells, numCells + numVertices)); in DMPlexCreateFluent()
948 PetscCall(PetscSectionSetDof(coordSection, v, dim)); in DMPlexCreateFluent()
949 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, dim)); in DMPlexCreateFluent()
951 PetscCall(PetscSectionSetUp(coordSection)); in DMPlexCreateFluent()
952 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in DMPlexCreateFluent()
H A Dplexsubmesh.c630 PetscSection coordSection, newCoordSection; in DMPlexShiftCoordinates_Internal() local
646 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexShiftCoordinates_Internal()
650 PetscCall(PetscSectionGetChart(coordSection, &sStart, &sEnd)); in DMPlexShiftCoordinates_Internal()
657 PetscCall(PetscSectionGetDof(coordSection, c, &dof)); in DMPlexShiftCoordinates_Internal()
682 PetscCall(PetscSectionGetDof(coordSection, c, &dof)); in DMPlexShiftCoordinates_Internal()
683 PetscCall(PetscSectionGetOffset(coordSection, c, &off)); in DMPlexShiftCoordinates_Internal()
691 PetscCall(PetscSectionGetDof(coordSection, v, &dof)); in DMPlexShiftCoordinates_Internal()
692 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexShiftCoordinates_Internal()
1253 PetscSection coordSection; in DMPlexConstructCohesiveCells_Internal() local
1857 PetscCall(DMGetCoordinateSection(sdm, &coordSection)); in DMPlexConstructCohesiveCells_Internal()
[all …]
H A Dplexglvis.c453 PetscSection coordSection, coordSectionCell, parentSection, hoSection = NULL; in DMPlexView_GLVis_ASCII() local
532 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexView_GLVis_ASCII()
701 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordinates, p, &csize, &vals)); in DMPlexView_GLVis_ASCII()
707 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordinates, p, &csize, &vals)); in DMPlexView_GLVis_ASCII()
750 …PetscCall(DMPlexGetPointMFEMVertexIDs_Internal(dm, p, (localized && !hovec) ? coordSection : NULL,… in DMPlexView_GLVis_ASCII()
789 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordinates, p, &csize, &vals)); in DMPlexView_GLVis_ASCII()
807 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordinates, p, &csize, &vals)); in DMPlexView_GLVis_ASCII()
975 …MPlexGetPointMFEMVertexIDs_Internal(dm, cell, (localized && !hovec) ? coordSection : NULL, &nv, vi… in DMPlexView_GLVis_ASCII()
1048 …PetscCall(DMPlexGetPointMFEMVertexIDs_Internal(dm, parent, localized ? coordSection : NULL, &nv, v… in DMPlexView_GLVis_ASCII()
H A Dplexvtu.c53 PetscSection coordSection, cellCoordSection; in DMPlexGetVTKConnectivity() local
60 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexGetVTKConnectivity()
170 PetscSection coordSection, cellCoordSection; in DMPlexVTKWriteAll_VTU() local
189 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexVTKWriteAll_VTU()
471 PetscCall(PetscSectionGetOffset(coordSection, closure[v], &off)); in DMPlexVTKWriteAll_VTU()
/petsc/src/dm/impls/plex/generators/ctetgen/
H A Dctetgenerate.c50 PetscSection coordSection; in DMPlexGenerate_CTetgen() local
57 PetscCall(DMGetCoordinateSection(boundary, &coordSection)); in DMPlexGenerate_CTetgen()
63 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexGenerate_CTetgen()
237 PetscSection coordSection; in DMPlexGenerate_CTetgen() local
243 PetscCall(DMGetCoordinateSection(*dm, &coordSection)); in DMPlexGenerate_CTetgen()
244 PetscCall(DMPlexVecGetClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_CTetgen()
247 … PetscCall(DMPlexVecRestoreClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_CTetgen()
309 PetscSection coordSection; in DMPlexRefine_CTetgen() local
316 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexRefine_CTetgen()
322 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexRefine_CTetgen()
[all …]
/petsc/src/dm/impls/plex/generators/tetgen/
H A Dtetgenerate.cxx69 PetscSection coordSection; in DMPlexGenerate_Tetgen() local
78 PetscCall(DMGetCoordinateSection(boundary, &coordSection)); in DMPlexGenerate_Tetgen()
84 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexGenerate_Tetgen()
262 PetscSection coordSection; in DMPlexGenerate_Tetgen() local
268 PetscCall(DMGetCoordinateSection(*dm, &coordSection)); in DMPlexGenerate_Tetgen()
269 PetscCall(DMPlexVecGetClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_Tetgen()
272 … PetscCall(DMPlexVecRestoreClosure(*dm, coordSection, coordinates, c, &coordSize, &coords)); in DMPlexGenerate_Tetgen()
333 PetscSection coordSection; in DMPlexRefine_Tetgen() local
342 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexRefine_Tetgen()
348 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexRefine_Tetgen()
[all …]
/petsc/src/dm/impls/swarm/
H A Dswarmpic_plex.c90 PetscSection coordSection; in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() local
134 PetscCall(DMGetCoordinateSection(dmc, &coordSection)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
138 PetscCall(DMPlexVecGetClosure(dmc, coordSection, coorlocal, ps + e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
148 PetscCall(DMPlexVecRestoreClosure(dmc, coordSection, coorlocal, ps + e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
165 PetscSection coordSection; in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() local
224 PetscCall(DMGetCoordinateSection(dmc, &coordSection)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
228 PetscCall(DMPlexVecGetClosure(dmc, coordSection, coorlocal, e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
238 PetscCall(DMPlexVecRestoreClosure(dmc, coordSection, coorlocal, e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
/petsc/src/dm/impls/plex/tests/
H A Dex26.c312 PetscSection coordSection; in main() local
320 PetscCall(DMGetCoordinateSection(dmUA, &coordSection)); in main()
331 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
339 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
362 PetscSection coordSection; in main() local
411 PetscCall(DMGetCoordinateSection(dmS, &coordSection)); in main()
429 PetscCall(DMPlexVecGetClosure(dmS, coordSection, coord, cellID[cell], &cdimCoord, &xyz)); in main()
438 PetscCall(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID[0], NULL, &xyz)); in main()
H A Dex8.c108 PetscSection coordSection; in ChangeCoordinates() local
115 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in ChangeCoordinates()
116 PetscCall(PetscSectionSetNumFields(coordSection, 1)); in ChangeCoordinates()
117 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, spaceDim)); in ChangeCoordinates()
118 PetscCall(PetscSectionSetChart(coordSection, vStart, vEnd)); in ChangeCoordinates()
120 PetscCall(PetscSectionSetDof(coordSection, v, spaceDim)); in ChangeCoordinates()
121 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, spaceDim)); in ChangeCoordinates()
123 PetscCall(PetscSectionSetUp(coordSection)); in ChangeCoordinates()
124 PetscCall(PetscSectionGetStorageSize(coordSection, &coordSize)); in ChangeCoordinates()
133 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in ChangeCoordinates()
[all …]
H A Dex64.c215 PetscSection coordSection; in main() local
223 PetscCall(DMGetCoordinateSection(seqdmUA, &coordSection)); in main()
234 PetscCall(DMPlexVecGetClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main()
242 PetscCall(DMPlexVecRestoreClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main()
311 PetscSection coordSection; in main() local
319 PetscCall(DMGetCoordinateSection(dmUA, &coordSection)); in main()
330 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
338 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
H A Dex26f90.F9064 type(tPetscSection) :: sectionUA, coordSection
352 PetscCallA(DMGetCoordinateSection(dmUA, coordSection, ierr))
360 PetscCallA(DMPlexVecGetClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
369 … PetscCallA(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
438 PetscCallA(DMGetCoordinateSection(dmS, coordSection, ierr))
450 …PetscCallA(DMPlexVecGetClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ie…
460 …PetscCallA(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz…
H A Dex62f90.F9047 type(tPetscSection) :: sectionUA, coordSection
336 PetscCallA(DMGetCoordinateSection(dmUA, coordSection, ierr))
344 PetscCallA(DMPlexVecGetClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
353 … PetscCallA(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr))
422 PetscCallA(DMGetCoordinateSection(dmS, coordSection, ierr))
434 …PetscCallA(DMPlexVecGetClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ie…
444 …PetscCallA(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz…
H A Dex3.c237 PetscSection coordSection; in TransformCoordinates() local
245 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in TransformCoordinates()
253 PetscCall(PetscSectionGetDof(coordSection, v, &dof)); in TransformCoordinates()
254 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in TransformCoordinates()
273 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in TransformCoordinates()
281 PetscCall(PetscSectionGetDof(coordSection, v, &dof)); in TransformCoordinates()
282 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in TransformCoordinates()
/petsc/src/ts/tests/
H A Dex28.c230 PetscSection coordSection; in CheckDistribution() local
243 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in CheckDistribution()
249 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordsLocal, c, NULL, &vcoords)); in CheckDistribution()
251 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordsLocal, c, NULL, &vcoords)); in CheckDistribution()
276 PetscSection coordSection; in RHSFunctionParticles() local
291 PetscCall(DMGetCoordinateSection(plex, &coordSection)); in RHSFunctionParticles()
322 PetscCall(DMPlexVecGetClosure(plex, coordSection, coordsLocal, c, NULL, &vcoords)); in RHSFunctionParticles()
324 PetscCall(DMPlexVecRestoreClosure(plex, coordSection, coordsLocal, c, NULL, &vcoords)); in RHSFunctionParticles()
340 PetscCall(DMPlexVecGetClosure(plex, coordSection, coordsLocal, p, NULL, &vcoords)); in RHSFunctionParticles()
342 PetscCall(DMPlexVecRestoreClosure(plex, coordSection, coordsLocal, p, NULL, &vcoords)); in RHSFunctionParticles()
/petsc/src/dm/impls/plex/generators/triangle/
H A Dtrigenerate.c91 PetscSection coordSection; in DMPlexGenerate_Triangle() local
98 PetscCall(DMGetCoordinateSection(boundary, &coordSection)); in DMPlexGenerate_Triangle()
104 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexGenerate_Triangle()
255 PetscSection coordSection; in DMPlexRefine_Triangle() local
262 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in DMPlexRefine_Triangle()
268 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMPlexRefine_Triangle()
/petsc/src/dm/impls/plex/exodusii/
H A Dplexexodusii2.c774 PetscSection coordSection; in DMView_PlexExodusII() local
805 PetscCall(PetscSectionCreate(comm, &coordSection)); in DMView_PlexExodusII()
1076 PetscCall(PetscSectionSetChart(coordSection, pStart, pEnd)); in DMView_PlexExodusII()
1080 … for (p = pStart; p < pEnd; ++p) PetscCall(PetscSectionSetDof(coordSection, p, nodes[0][d] > 0)); in DMView_PlexExodusII()
1091 …for (c = 0; c < csSize; ++c) PetscCall(PetscSectionSetDof(coordSection, cells[c], nodes[cs][3] > 0… in DMView_PlexExodusII()
1100 PetscCall(PetscSectionSetUp(coordSection)); in DMView_PlexExodusII()
1112 PetscCall(PetscSectionGetDof(coordSection, p, &hasDof)); in DMView_PlexExodusII()
1243 PetscCall(PetscSectionDestroy(&coordSection)); in DMView_PlexExodusII()
1669 PetscSection coordSection; in DMPlexCreateExodus() local
1811 PetscCall(DMGetCoordinateSection(*dm, &coordSection)); in DMPlexCreateExodus()
[all …]
/petsc/src/dm/impls/plex/adaptors/pragmatic/
H A Dpragmaticadapt.c15 PetscSection coordSection; in DMAdaptMetric_Pragmatic_Plex() local
91 PetscCall(DMGetLocalSection(cdm, &coordSection)); in DMAdaptMetric_Pragmatic_Plex()
95 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in DMAdaptMetric_Pragmatic_Plex()
/petsc/src/dm/impls/plex/tutorials/
H A Dex20.c62 PetscSection coordSection, s; in main() local
72 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in main()
79 PetscCall(PetscSectionGetOffset(coordSection, v, &cOff)); in main()
/petsc/src/snes/tests/
H A Dex2.c78 PetscSection coordSection; in CreatePoints_Centroid() local
86 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in CreatePoints_Centroid()
94 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordsLocal, p, &size, &coords)); in CreatePoints_Centroid()
105 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordsLocal, p, &num, &coords)); in CreatePoints_Centroid()
/petsc/src/snes/tutorials/
H A Dex13.c117 PetscSection coordSection; in CreateSpectralPlanes() local
126 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in CreateSpectralPlanes()
139 PetscCall(PetscSectionGetOffset(coordSection, v, &off)); in CreateSpectralPlanes()
248 PetscSection coordSection, section; in ComputeSpectral() local
268 PetscCall(DMGetCoordinateSection(dm, &coordSection)); in ComputeSpectral()
291 PetscCall(PetscSectionGetOffset(coordSection, points[i], &off)); in ComputeSpectral()
/petsc/src/dm/impls/plex/adaptors/mmg/
H A Dmmgadapt.c22 PetscSection coordSection; in DMAdaptMetric_Mmg_Plex() local
74 PetscCall(DMGetLocalSection(cdm, &coordSection)); in DMAdaptMetric_Mmg_Plex()
79 PetscCall(PetscSectionGetOffset(coordSection, v + vStart, &off)); in DMAdaptMetric_Mmg_Plex()
/petsc/src/dm/impls/plex/adaptors/parmmg/
H A Dparmmgadapt.c25 PetscSection coordSection; in DMAdaptMetric_ParMmg_Plex() local
120 PetscCall(DMGetLocalSection(cdm, &coordSection)); in DMAdaptMetric_ParMmg_Plex()
125 PetscCall(PetscSectionGetOffset(coordSection, v + vStart, &off)); in DMAdaptMetric_ParMmg_Plex()

12