Home
last modified time | relevance | path

Searched refs:offs (Results 1 – 6 of 6) sorted by relevance

/petsc/src/vec/is/section/interface/hdf5/
H A Dsectionhdf5.c13 PetscInt *dofs, *offs, *cdofs, *coffs, *cinds, dof, cdof, m, moff, i; in PetscSectionView_HDF5_SingleField() local
31 PetscCall(PetscMalloc1(n, &offs)); in PetscSectionView_HDF5_SingleField()
41 PetscCall(PetscSectionGetOffset(s, p, &offs[n])); in PetscSectionView_HDF5_SingleField()
66 PetscCall(ISCreateGeneral(comm, n, offs, PETSC_OWN_POINTER, &offIS)); in PetscSectionView_HDF5_SingleField()
183 const PetscInt *dofs, *offs, *cdofs; in PetscSectionLoad_HDF5_SingleField() local
216 PetscCall(ISGetIndices(offIS, &offs)); in PetscSectionLoad_HDF5_SingleField()
219 PetscCall(PetscSectionSetOffset(s, p, offs[n])); in PetscSectionLoad_HDF5_SingleField()
222 PetscCall(ISRestoreIndices(offIS, &offs)); in PetscSectionLoad_HDF5_SingleField()
/petsc/include/petsc/private/
H A Dpcpatchimpl.h41 …IS offs; /* [patch][point in patch]: patch local offset (same layout as 'poi… member
/petsc/src/dm/impls/stag/
H A Dstag2d.c163 const PetscReal offs[2] = {0.0, 0.0}; in DMStagSetUniformCoordinatesExplicit_2d() local
164 … 0; c < 2; ++c) arr[ind[1]][ind[0]][idownleft + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * h[c]; in DMStagSetUniformCoordinatesExplicit_2d()
167 const PetscReal offs[2] = {0.5, 0.0}; in DMStagSetUniformCoordinatesExplicit_2d() local
168 …for (c = 0; c < 2; ++c) arr[ind[1]][ind[0]][idown + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * … in DMStagSetUniformCoordinatesExplicit_2d()
171 const PetscReal offs[2] = {0.0, 0.5}; in DMStagSetUniformCoordinatesExplicit_2d() local
172 …for (c = 0; c < 2; ++c) arr[ind[1]][ind[0]][ileft + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * … in DMStagSetUniformCoordinatesExplicit_2d()
175 const PetscReal offs[2] = {0.5, 0.5}; in DMStagSetUniformCoordinatesExplicit_2d() local
176 …= 0; c < 2; ++c) arr[ind[1]][ind[0]][ielement + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * h[c]; in DMStagSetUniformCoordinatesExplicit_2d()
H A Dstag3d.c242 const PetscReal offs[3] = {0.0, 0.0, 0.0}; in DMStagSetUniformCoordinatesExplicit_3d() local
243 …+c) arr[ind[2]][ind[1]][ind[0]][ibackdownleft + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * h[c]; in DMStagSetUniformCoordinatesExplicit_3d()
246 const PetscReal offs[3] = {0.5, 0.0, 0.0}; in DMStagSetUniformCoordinatesExplicit_3d() local
247 …3; ++c) arr[ind[2]][ind[1]][ind[0]][ibackdown + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * h[c]; in DMStagSetUniformCoordinatesExplicit_3d()
250 const PetscReal offs[3] = {0.0, 0.5, 0.0}; in DMStagSetUniformCoordinatesExplicit_3d() local
251 …3; ++c) arr[ind[2]][ind[1]][ind[0]][ibackleft + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * h[c]; in DMStagSetUniformCoordinatesExplicit_3d()
254 const PetscReal offs[3] = {0.5, 0.5, 0.0}; in DMStagSetUniformCoordinatesExplicit_3d() local
255 …c < 3; ++c) arr[ind[2]][ind[1]][ind[0]][iback + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * h[c]; in DMStagSetUniformCoordinatesExplicit_3d()
258 const PetscReal offs[3] = {0.0, 0.0, 0.5}; in DMStagSetUniformCoordinatesExplicit_3d() local
259 …3; ++c) arr[ind[2]][ind[1]][ind[0]][idownleft + c] = min[c] + ((PetscReal)ind[c] + offs[c]) * h[c]; in DMStagSetUniformCoordinatesExplicit_3d()
[all …]
/petsc/src/ksp/pc/impls/patch/
H A Dpcpatch.c1682 …Call(ISCreateGeneral(PETSC_COMM_SELF, numPoints * Nf, offsArray, PETSC_OWN_POINTER, &patch->offs)); in PCPatchCreateCellPatchDiscretisationInfo()
1909 PetscCall(ISGetIndices(patch->offs, &oarray)); in PCPatchComputeFunction_DMPlex_Private()
1922 PetscCall(ISRestoreIndices(patch->offs, &oarray)); in PCPatchComputeFunction_DMPlex_Private()
1990 PetscCall(ISGetIndices(patch->offs, &oarray)); in PCPatchComputeOperator_DMPlex_Private()
2003 PetscCall(ISRestoreIndices(patch->offs, &oarray)); in PCPatchComputeOperator_DMPlex_Private()
2883 PetscCall(ISDestroy(&patch->offs)); in PCReset_PATCH()
/petsc/doc/manual/
H A Dsnes.md590 $\delta\lambda$, all of which have trade-offs.