Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/ !
H A Dplexindices.c24 PetscInt pStart, pEnd, sStart, sEnd, point, clSize; in DMPlexCreateClosureIndex() local
48 PetscCall(PetscSectionGetStorageSize(closureSection, &clSize)); in DMPlexCreateClosureIndex()
49 PetscCall(PetscMalloc1(clSize, &clPoints)); in DMPlexCreateClosureIndex()
69 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, clSize, clPoints, PETSC_OWN_POINTER, &closureIS)); in DMPlexCreateClosureIndex()
H A Dplexsubmesh.c137 PetscInt clSize, cl, cval; in DMPlexMarkBoundaryFaces_Internal() local
140 PetscCall(DMPlexGetTransitiveClosure(dm, f, PETSC_TRUE, &clSize, &closure)); in DMPlexMarkBoundaryFaces_Internal()
141 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexMarkBoundaryFaces_Internal()
147 if (cl == clSize * 2) PetscCall(DMLabelSetValue(label, f, 1)); in DMPlexMarkBoundaryFaces_Internal()
148 PetscCall(DMPlexRestoreTransitiveClosure(dm, f, PETSC_TRUE, &clSize, &closure)); in DMPlexMarkBoundaryFaces_Internal()
3752 PetscInt cStart, cEnd, c, clSize, cl; in DMPlexCreateSubmeshGeneric_Interpolated() local
3776 PetscCall(DMPlexGetTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in DMPlexCreateSubmeshGeneric_Interpolated()
3777 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexCreateSubmeshGeneric_Interpolated()
3781 PetscCall(DMPlexRestoreTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in DMPlexCreateSubmeshGeneric_Interpolated()
H A Dplexpartition.c818 PetscInt cl, clSize, clOff; in PetscPartitionerDMPlexPartition() local
821 PetscCall(PetscSectionGetDof(clSection, p, &clSize)); in PetscPartitionerDMPlexPartition()
823 for (cl = 0; cl < clSize; cl += 2) { in PetscPartitionerDMPlexPartition()
H A Dplex.c4068 PetscInt dim, coneSize, c, d, clSize, cl; in DMPlexTransitiveClosure_Tensor_Internal() local
4084 …+ 0]], DMPolytopeTypeComposeOrientation(ft, arr[0 * 2 + 1], ornt[0]), useCone, &clSize, &closure)); in DMPlexTransitiveClosure_Tensor_Internal()
4085 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexTransitiveClosure_Tensor_Internal()
4089 …+ 0]], DMPolytopeTypeComposeOrientation(ft, arr[1 * 2 + 1], ornt[1]), useCone, &clSize, &closure)); in DMPlexTransitiveClosure_Tensor_Internal()
4090 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexTransitiveClosure_Tensor_Internal()
4094 PetscCall(DMPlexRestoreTransitiveClosure(dm, cone[0], useCone, &clSize, &closure)); in DMPlexTransitiveClosure_Tensor_Internal()
9961 PetscInt Nv, d, clSize, cl, *closure = NULL; in DMPlexCheckCellShape() local
9975 PetscCall(DMPlexGetTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in DMPlexCheckCellShape()
9976 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexCheckCellShape()
9986 PetscCall(DMPlexRestoreTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in DMPlexCheckCellShape()
H A Dplexegads.c1455 PetscInt clSize, cl, bval, fval; in DMPlexCreateGeom_Internal() local
1457 PetscCall(DMPlexGetTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in DMPlexCreateGeom_Internal()
1460 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexCreateGeom_Internal()
1464 PetscCall(DMPlexRestoreTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in DMPlexCreateGeom_Internal()
H A Dplexcreate.c4710 PetscInt clSize, pdepth; in ProcessCohesiveLabel_Faces() local
4714 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &clSize, &closure)); in ProcessCohesiveLabel_Faces()
4715 for (PetscInt cl = 0; cl < clSize * 2; cl += 2) { in ProcessCohesiveLabel_Faces()
4719 PetscCall(DMPlexRestoreTransitiveClosure(dm, point, PETSC_TRUE, &clSize, &closure)); in ProcessCohesiveLabel_Faces()
/petsc/src/dm/impls/plex/tests/ !
H A Dex64.c218 PetscInt clSize, i, j; in main() local
234 PetscCall(DMPlexVecGetClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main()
238 for (j = 0; j < clSize / sdim; ++j) cval[offUA + i] += xyz[j * sdim + i]; in main()
239 cval[offUA + i] = cval[offUA + i] * sdim / clSize; in main()
242 PetscCall(DMPlexVecRestoreClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main()
314 PetscInt clSize, i, j; in main() local
330 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
334 for (j = 0; j < clSize / sdim; ++j) cval[offUA + i] += xyz[j * sdim + i]; in main()
335 cval[offUA + i] = cval[offUA + i] * sdim / clSize; in main()
338 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
H A Dex26.c315 PetscInt clSize, i, j; in main() local
331 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
335 for (j = 0; j < clSize / sdim; ++j) cval[offUA + i] += xyz[j * sdim + i]; in main()
336 cval[offUA + i] = cval[offUA + i] * sdim / clSize; in main()
339 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
422 PetscInt clSize, cdimCoord, c; in main() local
428 PetscCall(DMPlexVecGetClosure(dmS, NULL, S, cellID[cell], &clSize, &cval)); in main()
437 PetscCall(DMPlexVecRestoreClosure(dmS, NULL, S, cellID[0], &clSize, &cval)); in main()
/petsc/src/dm/impls/plex/tutorials/ !
H A Dex6.c37 static PetscErrorCode LoadData2D(DM dm, PetscInt Ni, PetscInt Nj, PetscInt clSize, Vec u, AppCtx *u… in LoadData2D() argument
43 PetscCall(PetscMalloc1(clSize, &closure)); in LoadData2D()
47 PetscCall(PetscArrayzero(closure, clSize)); in LoadData2D()
65 static PetscErrorCode LoadData3D(DM dm, PetscInt Ni, PetscInt Nj, PetscInt Nk, PetscInt clSize, Vec… in LoadData3D() argument
71 PetscCall(PetscMalloc1(clSize, &closure)); in LoadData3D()
76 PetscCall(PetscArrayzero(closure, clSize)); in LoadData3D()
/petsc/src/vec/is/section/interface/ !
H A Dsection.c3226 …Internal(PetscSection section, PetscObject obj, PetscInt depth, PetscInt clSize, PetscCopyMode mod… in PetscSectionSetClosurePermutation_Internal() argument
3231 PetscSectionClosurePermKey key = {depth, clSize}; in PetscSectionSetClosurePermutation_Internal()
3248 PetscCall(PetscMalloc1(clSize, &val->perm)); in PetscSectionSetClosurePermutation_Internal()
3249 PetscCall(PetscArraycpy(val->perm, clPerm, clSize)); in PetscSectionSetClosurePermutation_Internal()
3253 PetscCall(PetscMalloc1(clSize, &val->invPerm)); in PetscSectionSetClosurePermutation_Internal()
3254 for (i = 0; i < clSize; ++i) val->invPerm[clPerm[i]] = i; in PetscSectionSetClosurePermutation_Internal()
3284 PetscInt clSize = 0; in PetscSectionSetClosurePermutation() local
3288 PetscCall(ISGetLocalSize(perm, &clSize)); in PetscSectionSetClosurePermutation()
3291 …PetscCall(PetscSectionSetClosurePermutation_Internal(section, obj, depth, clSize, PETSC_COPY_VALUE… in PetscSectionSetClosurePermutation()
3332 …losurePermutation(PetscSection section, PetscObject obj, PetscInt depth, PetscInt clSize, IS *perm) in PetscSectionGetClosurePermutation() argument
[all …]
/petsc/src/snes/utils/dm/ !
H A Ddminterpolatesnes.c893 PetscInt coff = 0, foff = 0, clSize; in DMInterpolationEvaluate() local
898 PetscCall(DMPlexVecGetClosure(dm, NULL, x, ctx->cells[p], &clSize, &xa)); in DMInterpolationEvaluate()
934 PetscCall(DMPlexVecRestoreClosure(dm, NULL, x, ctx->cells[p], &clSize, &xa)); in DMInterpolationEvaluate()
936 …ck(foff == clSize, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Total FE/FV space size %" PetscInt_FMT " != %… in DMInterpolationEvaluate()
/petsc/src/dm/impls/plex/transform/interface/ !
H A Dplextransform.c1713 PetscInt clSize, cl, Nv = 0; in DMPlexTransformCreateCellVertices_Internal() local
1717 PetscCall(DMPlexGetTransitiveClosure(trdm, pNew, PETSC_TRUE, &clSize, &closure)); in DMPlexTransformCreateCellVertices_Internal()
1718 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexTransformCreateCellVertices_Internal()
1723 PetscCall(DMPlexRestoreTransitiveClosure(trdm, pNew, PETSC_TRUE, &clSize, &closure)); in DMPlexTransformCreateCellVertices_Internal()
2243 PetscInt clSize, cl, Nv = 0; in DMPlexTransformSetCoordinates() local
2246 PetscCall(DMPlexGetTransitiveClosure(rdm, cNew, PETSC_TRUE, &clSize, &closure)); in DMPlexTransformSetCoordinates()
2247 for (cl = 0; cl < clSize * 2; cl += 2) { in DMPlexTransformSetCoordinates()
2250 PetscCall(DMPlexRestoreTransitiveClosure(rdm, cNew, PETSC_TRUE, &clSize, &closure)); in DMPlexTransformSetCoordinates()
/petsc/src/ksp/pc/impls/patch/ !
H A Dpcpatch.c2505 PetscInt clSize = 0, cl; in PCSetUp_PATCH() local
2507 PetscCall(DMPlexGetTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in PCSetUp_PATCH()
2508 for (cl = 0; cl < clSize * 2; cl += 2) { in PCSetUp_PATCH()
2516 PetscCall(DMPlexRestoreTransitiveClosure(dm, c, PETSC_TRUE, &clSize, &closure)); in PCSetUp_PATCH()