Home
last modified time | relevance | path

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

/petsc/src/vec/is/utils/hdf5/
H A Dhdf5io.c8 int lenInd, bsInd, complexInd, rdim; member
123 ctx->rdim = 1; in PetscViewerHDF5ReadSizes_Private()
125 PetscCall(PetscMalloc1(ctx->rdim, &ctx->dims)); in PetscViewerHDF5ReadSizes_Private()
132 PetscCallHDF5Return(ctx->rdim, H5Sget_simple_extent_dims, (ctx->dataspace, NULL, NULL)); in PetscViewerHDF5ReadSizes_Private()
133 PetscCall(PetscMalloc1(ctx->rdim, &ctx->dims)); in PetscViewerHDF5ReadSizes_Private()
134 PetscCallHDF5Return(ctx->rdim, H5Sget_simple_extent_dims, (ctx->dataspace, ctx->dims, NULL)); in PetscViewerHDF5ReadSizes_Private()
152 ctx->bsInd = ctx->rdim - 2; in PetscViewerHDF5ReadSizes_Private()
153 ctx->complexInd = ctx->rdim - 1; in PetscViewerHDF5ReadSizes_Private()
155 ctx->bsInd = ctx->rdim - 1; in PetscViewerHDF5ReadSizes_Private()
159rdim - 1, PetscObjectComm((PetscObject)viewer), PETSC_ERR_FILE_UNEXPECTED, "Calculated block dimen… in PetscViewerHDF5ReadSizes_Private()
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdmstag.pxi192 cdef PetscInt rdim = <PetscInt>len(ranges)
194 if dim == PETSC_DECIDE: dim = rdim
195 elif dim != rdim: raise ValueError(
197 (toInt(dim), toInt(rdim)))
H A Dpetscdmda.pxi157 cdef PetscInt rdim = <PetscInt>len(ranges)
159 if dim == PETSC_DECIDE: dim = rdim
160 elif dim != rdim: raise ValueError(
162 (toInt(dim), toInt(rdim)))
/petsc/src/dm/impls/da/
H A Dgr2.c767 int dim, rdim; in VecLoad_HDF5_DA() local
805 PetscCallHDF5Return(rdim, H5Sget_simple_extent_dims, (filespace, dims, NULL)); in VecLoad_HDF5_DA()
808 dofInd = PetscDefined(USE_COMPLEX) ? rdim - 2 : rdim - 1; in VecLoad_HDF5_DA()
819 if (rdim == dim + 1) { in VecLoad_HDF5_DA()
827 …heck(rdim == dim, PETSC_COMM_SELF, PETSC_ERR_FILE_UNEXPECTED, "Dimension of array in file is %d, n… in VecLoad_HDF5_DA()
/petsc/src/ksp/ksp/tests/
H A Dex10.c23 PetscInt i, its, m = 3, rdim, cdim, rstart, rend; in main() local
40 PetscCall(MatGetSize(mat, &rdim, &cdim)); in main()
43 PetscCall(VecSetSizes(u, PETSC_DECIDE, rdim)); in main()
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c379 hsize_t rdim, *dims; in DMSequenceGetLength_HDF5_Internal() local
391 PetscCallHDF5ReturnNoCheck(rdim, H5Sget_simple_extent_dims, (dspace, NULL, NULL)); in DMSequenceGetLength_HDF5_Internal()
392 PetscCall(PetscMalloc1(rdim, &dims)); in DMSequenceGetLength_HDF5_Internal()
393 PetscCallHDF5ReturnNoCheck(rdim, H5Sget_simple_extent_dims, (dspace, dims, NULL)); in DMSequenceGetLength_HDF5_Internal()