Home
last modified time | relevance | path

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

/petsc/src/binding/petsc4py/src/petsc4py/lib/_pytypes/viewer/
H A Dpetscpyvista.py157 spoints = sw.getField('DMSwarmPIC_coor')
158 n = spoints.shape[0]
159 bs = spoints.shape[1]
162 points[i,:bs] = spoints[i,:]
/petsc/src/dm/impls/plex/
H A Dplexnatural.c75 PetscInt *spoints, *remoteOffsets; in DMPlexCreateGlobalToNaturalSF() local
124 PetscCall(PetscMalloc3(ssize, &spoints, Nl, &sortleaves, Nl, &indices)); in DMPlexCreateGlobalToNaturalSF()
138 spoints[ssize++] = indices[loc]; in DMPlexCreateGlobalToNaturalSF()
141 PetscCall(PetscSFCreateEmbeddedLeafSF(sfMigration, ssize, spoints, &sfEmbed)); in DMPlexCreateGlobalToNaturalSF()
143 PetscCall(PetscFree3(spoints, sortleaves, indices)); in DMPlexCreateGlobalToNaturalSF()
/petsc/src/vec/is/section/interface/
H A Dsection.c2297 PetscInt *spoints = NULL, *order = NULL; in PetscSectionCreateSubplexSection_Private() local
2333 PetscCall(PetscMalloc2(numSubpoints, &spoints, numSubpoints, &order)); in PetscSectionCreateSubplexSection_Private()
2334 PetscCall(PetscArraycpy(spoints, points, numSubpoints)); in PetscSectionCreateSubplexSection_Private()
2336 PetscCall(PetscSortIntWithArray(numSubpoints, spoints, order)); in PetscSectionCreateSubplexSection_Private()
2346 PetscCall(PetscFindInt(p, numSubpoints, spoints ? spoints : points, &subp)); in PetscSectionCreateSubplexSection_Private()
2366 PetscCall(PetscFindInt(p, numSubpoints, spoints ? spoints : points, &subp)); in PetscSectionCreateSubplexSection_Private()
2392 PetscCall(PetscFree2(spoints, order)); in PetscSectionCreateSubplexSection_Private()
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c1506 const PetscInt *spoints = NULL; in DMPlexLabelsView_HDF5_Internal() local
1516 if (stratumIS) PetscCall(ISGetIndices(stratumIS, &spoints)); in DMPlexLabelsView_HDF5_Internal()
1518 if (gpoint[spoints[p]] >= 0) ++gn; in DMPlexLabelsView_HDF5_Internal()
1521 if (gpoint[spoints[p]] >= 0) gspoints[gn++] = gpoint[spoints[p]]; in DMPlexLabelsView_HDF5_Internal()
1522 if (stratumIS) PetscCall(ISRestoreIndices(stratumIS, &spoints)); in DMPlexLabelsView_HDF5_Internal()
/petsc/src/dm/label/
H A Ddmlabel.c2395 const PetscInt *spoints; in DMLabelConvertToSection() local
2401 PetscCall(ISGetIndices(is, &spoints)); in DMLabelConvertToSection()
2402 for (p = 0; p < dof; ++p) points[off + p] = spoints[p]; in DMLabelConvertToSection()
2403 PetscCall(ISRestoreIndices(is, &spoints)); in DMLabelConvertToSection()