Home
last modified time | relevance | path

Searched refs:Ncl (Results 1 – 11 of 11) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex49.c101 PetscInt *offsets, Ncell, Ncl, Nc, n; in CheckOffsets() local
103 …PetscCall(DMPlexGetLocalOffsets(dm, domain_label, label_value, height, f, &Ncell, &Ncl, &Nc, &n, &… in CheckOffsets()
104 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, Ncell * Ncl, offsets, PETSC_OWN_POINTER, &offIS)); in CheckOffsets()
138 PetscInt cdim, *offsets, Ncell, Ncl, Nc, n; in CheckOffsets() local
154 …PetscCall(DMPlexGetLocalOffsets(cdm, domain_label, label_value, height, 0, &Ncell, &Ncl, &Nc, &n, … in CheckOffsets()
161 for (PetscInt v = 0; v < Ncl; ++v) { in CheckOffsets()
162 PetscInt off = offsets[c * Ncl + v], dgdof; in CheckOffsets()
167 …PetscCheck(Ncl * Nc == dgdof, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Offset size %" PetscInt_FMT … in CheckOffsets()
/petsc/src/dm/impls/plex/transform/impls/filter/
H A Dplextrfilter.c44 PetscInt Ncl, cl; in DMPlexTransformSetUp_Filter() local
46 PetscCall(DMPlexGetTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in DMPlexTransformSetUp_Filter()
47 for (cl = 0; cl < Ncl * 2; cl += 2) { in DMPlexTransformSetUp_Filter()
51 PetscCall(DMPlexRestoreTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in DMPlexTransformSetUp_Filter()
/petsc/src/dm/impls/plex/tutorials/
H A Dex11.c72 PetscInt Ncl, cl, Nv, vStart, vEnd, v; in CheckCellVertices() local
79 PetscCall(DMPlexGetTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in CheckCellVertices()
80 for (cl = 0, Nv = 0; cl < Ncl * 2; cl += 2) { in CheckCellVertices()
91 PetscCall(DMPlexRestoreTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in CheckCellVertices()
102 PetscInt cdim, d, Nc, Ncl, cl, vStart, vEnd, Nv; in ReorientCell() local
116 PetscCall(DMPlexGetTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in ReorientCell()
117 for (cl = 0, Nv = 0; cl < Ncl * 2; cl += 2) { in ReorientCell()
126 PetscCall(DMPlexRestoreTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in ReorientCell()
/petsc/src/dm/impls/plex/generators/ctetgen/
H A Dctetgenerate.c254 PetscInt *closure = NULL, Ncl, cl; in DMPlexGenerate_CTetgen() local
257 PetscCall(DMPlexGetTransitiveClosure(*dm, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexGenerate_CTetgen()
258 for (cl = 0; cl < Ncl; ++cl) { in DMPlexGenerate_CTetgen()
270 PetscCall(DMPlexRestoreTransitiveClosure(*dm, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexGenerate_CTetgen()
529 PetscInt *closure = NULL, Ncl, cl; in DMPlexRefine_CTetgen() local
532 PetscCall(DMPlexGetTransitiveClosure(*dmRefined, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexRefine_CTetgen()
533 for (cl = 0; cl < Ncl; cl += 2) { in DMPlexRefine_CTetgen()
545 PetscCall(DMPlexRestoreTransitiveClosure(*dmRefined, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexRefine_CTetgen()
/petsc/src/dm/impls/plex/generators/tetgen/
H A Dtetgenerate.cxx283 PetscInt *closure = nullptr, Ncl, cl; in DMPlexGenerate_Tetgen() local
286 PetscCall(DMPlexGetTransitiveClosure(*dm, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexGenerate_Tetgen()
287 for (cl = 0; cl < Ncl; cl += 2) { in DMPlexGenerate_Tetgen()
299 PetscCall(DMPlexRestoreTransitiveClosure(*dm, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexGenerate_Tetgen()
562 PetscInt *closure = nullptr, Ncl, cl; in DMPlexRefine_Tetgen() local
565 PetscCall(DMPlexGetTransitiveClosure(*dmRefined, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexRefine_Tetgen()
566 for (cl = 0; cl < Ncl; cl += 2) { in DMPlexRefine_Tetgen()
578 PetscCall(DMPlexRestoreTransitiveClosure(*dmRefined, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexRefine_Tetgen()
/petsc/src/dm/impls/plex/transform/impls/refine/sbr/
H A Dplexrefsbr.c182 PetscInt Ncl, cl; in DMPlexTransformSetUp_SBR() local
185 PetscCall(DMPlexGetTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in DMPlexTransformSetUp_SBR()
186 for (cl = 0; cl < Ncl; cl += 2) { in DMPlexTransformSetUp_SBR()
194 PetscCall(DMPlexRestoreTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in DMPlexTransformSetUp_SBR()
/petsc/src/dm/impls/plex/
H A Dplexgmsh.c1951 PetscInt Ncl; in DMPlexCreateGmsh() local
1953 PetscCall(DMPlexGetTransitiveClosure(*dm, p, PETSC_TRUE, &Ncl, &closure)); in DMPlexCreateGmsh()
1954 for (PetscInt cl = 0; cl < Ncl * 2; cl += 2) { in DMPlexCreateGmsh()
1962 PetscCall(DMPlexRestoreTransitiveClosure(*dm, p, PETSC_TRUE, &Ncl, &closure)); in DMPlexCreateGmsh()
2076 PetscInt Ncl, Nv = 0; in DMPlexCreateGmsh() local
2079 PetscCall(DMPlexGetTransitiveClosure(*dm, p, PETSC_TRUE, &Ncl, &closure)); in DMPlexCreateGmsh()
2080 for (PetscInt cl = 0; cl < Ncl * 2; cl += 2) { in DMPlexCreateGmsh()
2083 PetscCall(DMPlexRestoreTransitiveClosure(*dm, p, PETSC_TRUE, &Ncl, &closure)); in DMPlexCreateGmsh()
2116 PetscInt Ncl, Nv = 0; in DMPlexCreateGmsh() local
2120 PetscCall(DMPlexGetTransitiveClosure(cdmCell, c, PETSC_TRUE, &Ncl, &closure)); in DMPlexCreateGmsh()
[all …]
H A Dplex.c8134 PetscInt Ncl, Ni = 0; in DMPlexGetClosureIndicesSize_Internal() local
8137 …PetscCall(DMPlexGetCompressedClosure(dm, section, point, 0, &Ncl, &points, &clSection, &clPoints, … in DMPlexGetClosureIndicesSize_Internal()
8138 for (PetscInt p = 0; p < Ncl * 2; p += 2) { in DMPlexGetClosureIndicesSize_Internal()
8144 …PetscCall(DMPlexRestoreCompressedClosure(dm, section, point, &Ncl, &points, &clSection, &clPoints,… in DMPlexGetClosureIndicesSize_Internal()
8167 PetscInt Nf, Ncl, Ni = 0, offsets[32], p, f; in DMPlexGetClosureIndices_Internal() local
8185 …PetscCall(DMPlexGetCompressedClosure(dm, section, point, 0, &Ncl, &points, &clSection, &clPoints, … in DMPlexGetClosureIndices_Internal()
8189 for (clsize = 0, p = 0; p < Ncl; p++) { in DMPlexGetClosureIndices_Internal()
8197 for (p = 0; p < Ncl * 2; p += 2) { in DMPlexGetClosureIndices_Internal()
8217 if (Nf) PetscCall(PetscSectionGetFieldPointSyms(section, f, Ncl, points, &perms[f], &flips[f])); in DMPlexGetClosureIndices_Internal()
8218 else PetscCall(PetscSectionGetPointSyms(section, Ncl, points, &perms[f], &flips[f])); in DMPlexGetClosureIndices_Internal()
[all …]
H A Dplexsubmesh.c2052 PetscInt Ncl, val; in CheckFaultEdge_Private() local
2054 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &Ncl, &closure)); in CheckFaultEdge_Private()
2055 for (PetscInt cl = 0; cl < Ncl * 2; cl += 2) { in CheckFaultEdge_Private()
2092 PetscInt Ncl, dep, val; in CheckFaultEdge_Private() local
2094 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &Ncl, &closure)); in CheckFaultEdge_Private()
2095 for (PetscInt cl = 0; cl < Ncl * 2; cl += 2) { in CheckFaultEdge_Private()
/petsc/src/dm/impls/plex/transform/impls/refine/bl/
H A Dplexrefbl.c39 PetscInt Ncl, cl; in DMPlexTransformSetUp_BL() local
41 PetscCall(DMPlexGetTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in DMPlexTransformSetUp_BL()
42 for (cl = 0; cl < Ncl * 2; cl += 2) { in DMPlexTransformSetUp_BL()
63 PetscCall(DMPlexRestoreTransitiveClosure(dm, cell, PETSC_TRUE, &Ncl, &closure)); in DMPlexTransformSetUp_BL()
/petsc/src/dm/impls/swarm/
H A Dswarmpic.c1372 PetscInt Ncl; in DMProjectFieldLocal_Swarm() local
1391 PetscCall(DMPlexVecGetClosure(dmIn, NULL, U, cell, &Ncl, &closure)); in DMProjectFieldLocal_Swarm()
1404 PetscCall(DMPlexVecRestoreClosure(dmIn, NULL, U, cell, &Ncl, &closure)); in DMProjectFieldLocal_Swarm()