MiscTools
Detailed Description
Miscellaneous tools and other utilities commonly used by other modules.
Functions | |
PetscErrorCode | PreSplitOwnership (const MPI_Comm comm, const PetscInt N, PetscInt &locrows, PetscInt &Istart) |
PetscErrorCode | SplitOwnership (const PetscMPIInt &rank, const PetscMPIInt &nprocs, const PetscInt N, PetscInt &locrows, PetscInt &Istart) |
template<typename T > | |
PetscErrorCode | RetrieveInfoFile (const MPI_Comm &mpi_comm, const std::string &filename, std::map< std::string, T > &infomap) |
Utility to retrieve the contents of a key-value data file where the keys are strings and the values are of a given type T . More... | |
PetscErrorCode | SetOptionsFromFile (MPI_Comm &mpi_comm, const std::string &filename) |
Reads a file containing keys and values and sets them as command line arguments. More... | |