Function GetGlobalLocalCounts

Function Documentation

void GetGlobalLocalCounts(int nfiles, PetscInt **metadata, int local_firstfile, int local_lastfile, PetscInt *global_nrow, PetscInt *global_ncol, PetscInt *global_nnz, PetscInt *local_nrow, PetscInt *local_nnz, PetscInt *local_row0)

Use metadata to determine global and local sizes and indices.

Parameters
  • nfiles: The number of CSR.hdf5 files, from a previous call to CountFiles()
  • **metadata: Metadata from index.txt from a previous call to ReadIndex()
  • local_firstfile: first index in the list of files for this rank
  • local_lastfile: last index in the list of files for this rank
  • global_nrow: total number of rows from metadata
  • global_ncol: total number of columns from metadata
  • global_nnz: total number of non-zero entries from metadata
  • local_nrow: number of rows for this rank
  • local_nnz: number of non-zero entries for this rank
  • local_row0: index of first row for this rank