44PetscErrorCode
print(
const std::string &info);
61PetscErrorCode
writeHDF5Vecs(
const MPI_Comm comm,
const std::string &filePath,
62 const std::string &loc,
63 const std::vector<std::string> &names,
64 const std::vector<Vec> &vecs,
65 const PetscFileMode mode = FILE_MODE_WRITE);
83PetscErrorCode
writeHDF5Vecs(
const MPI_Comm comm,
const std::string &filePath,
84 const std::string &loc,
85 const std::vector<std::string> &names,
86 const std::vector<PetscInt> &n,
87 const std::vector<PetscReal *> &vecs,
88 const PetscFileMode mode = FILE_MODE_WRITE);
105PetscErrorCode
writeHDF5Vecs(
const MPI_Comm comm,
const std::string &filePath,
106 const std::string &loc,
107 const std::vector<std::string> &names,
109 const PetscFileMode mode = FILE_MODE_WRITE);
125PetscErrorCode
readHDF5Vecs(
const MPI_Comm comm,
const std::string &filePath,
126 const std::string &loc,
127 const std::vector<std::string> &names,
128 std::vector<Vec> &vecs);
138PetscErrorCode
writePetscLog(
const MPI_Comm comm,
const std::string &filePath);
PetscErrorCode writeHDF5Vecs(const MPI_Comm comm, const std::string &filePath, const std::string &loc, const std::vector< std::string > &names, const std::vector< Vec > &vecs, const PetscFileMode mode=FILE_MODE_WRITE)
Write a vector of Vec objects to a HDF5 file.
PetscErrorCode readHDF5Vecs(const MPI_Comm comm, const std::string &filePath, const std::string &loc, const std::vector< std::string > &names, std::vector< Vec > &vecs)
Read a vector of Vec objects from a HDF5 file.
PetscErrorCode readLagrangianPoints(const std::string &file, PetscInt &nPts, type::RealVec2D &coords)
Read the number Lagrangian points and their coordinates from a file.
PetscErrorCode writePetscLog(const MPI_Comm comm, const std::string &filePath)
Write a summary of the PETSc logging into a ASCII file.
PetscErrorCode print(const std::string &info)
Print information of a parallel object to standard output.
std::vector< RealVec1D > RealVec2D
2D std::vector holding PetscReal.
A toolbox for building flow solvers.
body::SingleBodyBase, type::SingleBody factory function.
Definition of user-defined types for convenience.