Function ReadLocalCSR¶
- Defined in File ema.h
Function Documentation¶
-
PetscErrorCode
ReadLocalCSR(MPI_Comm COMM, char *csrnames[], int local_firstfile, int local_lastfile, int nsolve, PetscInt *local_indptr, PetscInt *local_jcol, PetscScalar *local_data, PetscScalar *local_weights, PetscScalar **local_rhs)¶ Build local CSR block by sequentially reading in local hdf5 files.
- Parameters
COMM: The MPI communicator, PETSC_COMM_SELF.*csrnames[]: The names of the CSR.hdf5 fileslocal_firstfilelocal_lastfile: Indices of which files are handled by which rank.nsolve: how many solves (right-hand sides) to perform*local_indptr: CSR index ptr for this rank*local_jcol: CSR column indices for this rank*local_data: CSR data for this rank*local_weights: Holds the concatenated weights for this rank.*local_rhs: Holds the right-hand-side(s) for this rank