Function CountSolves

Function Documentation

PetscErrorCode CountSolves(MPI_Comm COMM, char indexname[], PetscInt *nsolve)

Counts how many x0 vectors are stored in the regularization file.

Parameters
  • COMM: The MPI communicator, PETSC_COMM_SELF.A
  • dir: string containing the directory
  • number: of solves