petsc-3.11.4 2019-09-28
PetscViewerHDF5GetAIJNames
Get the names of the datasets representing the three AIJ (CRS) arrays and the name of the attribute storing the number of columns within the HDF5 file.
Synopsis
#include "petscviewerhdf5.h"
/* TODO Once corresponding MatView is implemented, add this:
Current defaults are (iname, jname, aname, cname) = ("i", "j", "a", "ncols").
For PetscViewerFormat PETSC_VIEWER_HDF5_MAT they are ("jc", "ir", "data", "MATLAB_sparse") so that MAT files can be loaded.
*/
PetscErrorCode PetscViewerHDF5GetAIJNames(PetscViewer viewer, const char *iname[], const char *jname[], const char *aname[], const char *cname[])
Collective on PetscViewer
Input Parameters
viewer -the PetscViewer; either ASCII or binary
Output Parameters
| iname | - name of dataset i representing row pointers; that is i[0] = 0, i[row] = i[row-1] + number of elements in that row of the matrix
|
| jname | - name of dataset j representing column indices
|
| aname | - name of dataset a representing matrix values
|
| cname | - name of attribute stoting column count
|
Notes
Current defaults are (iname, jname, aname, cname) = ("jc", "ir", "data", "MATLAB_sparse") so that MAT files can be readily loaded.
See Also
MatLoad(), PetscViewerCreate(), PetscViewerSetType(), PETSCVIEWERHDF5, PetscViewerHDF5SetAIJNames()
Level
advanced
Location
src/sys/classes/viewer/impls/hdf5/hdf5v.c
Implementations
PetscViewerHDF5GetAIJNames_HDF5 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