petsc-3.11.0 2019-03-29
Report Typos and Errors

PetscViewerHDF5ReadSizes

Read block size and global size of a vector (Vec or IS) stored in an HDF5 file.

Synopsis

#include "petscsys.h"   
#include "petscviewerhdf5.h"   
PetscErrorCode PetscViewerHDF5ReadSizes(PetscViewer viewer, const char name[], PetscInt *bs, PetscInt *N)

Input Parameters

viewer - The HDF5 viewer
name - The vector name

Output Parameter

bs - block size
N - global size

Note

A vector is stored as an HDF5 dataspace with 1-4 dimensions in this order

1) # timesteps (optional), 2) # blocks, 3) # elements per block (optional), 4) real and imaginary part (only for complex).

A vectors can be stored as a 2D dataspace even if its blocksize is 1; see PetscViewerHDF5SetBaseDimension2().

See Also

PetscViewerHDF5Open(), VecLoad(), ISLoad(), VecGetSize(), ISGetSize(), PetscViewerHDF5SetBaseDimension2()

Level

advanced

Location

src/sys/classes/viewer/impls/hdf5/hdf5v.c

Implementations

PetscViewerHDF5ReadSizes_Private in src/sys/classes/viewer/impls/hdf5/hdf5v.c

Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages