PetIBM 0.5.4
Toolbox and applications of the immersed-boundary method for distributed-memory architectures
petibm::io Namespace Reference

A namespace of I/O-related functions. More...

Functions

PetscErrorCode readLagrangianPoints (const std::string &file, PetscInt &nPts, type::RealVec2D &coords)
 Read the number Lagrangian points and their coordinates from a file. More...
 
PetscErrorCode print (const std::string &info)
 Print information of a parallel object to standard output. More...
 
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. More...
 
PetscErrorCode writeHDF5Vecs (const MPI_Comm comm, const std::string &filePath, const std::string &loc, const std::vector< std::string > &names, const std::vector< PetscInt > &n, const std::vector< PetscReal * > &vecs, const PetscFileMode mode=FILE_MODE_WRITE)
 Write a vector of raw arrays to a HDF5 file. More...
 
PetscErrorCode writeHDF5Vecs (const MPI_Comm comm, const std::string &filePath, const std::string &loc, const std::vector< std::string > &names, const type::RealVec2D &vecs, const PetscFileMode mode=FILE_MODE_WRITE)
 Write petibm::type::RealVec2D to a HDF5 file. More...
 
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. More...
 
PetscErrorCode writePetscLog (const MPI_Comm comm, const std::string &filePath)
 Write a summary of the PETSc logging into a ASCII file. More...
 

Detailed Description

A namespace of I/O-related functions.