PetIBM 0.5.4
Toolbox and applications of the immersed-boundary method for distributed-memory architectures
|
Implementations of I/O functions. More...
#include <fstream>
#include <sstream>
#include <vector>
#include <petscviewerhdf5.h>
#include <petibm/io.h>
Go to the source code of this file.
Namespaces | |
namespace | petibm |
A toolbox for building flow solvers. | |
namespace | petibm::io |
A namespace of I/O-related functions. | |
Functions | |
PetscErrorCode | petibm::io::readLagrangianPoints (const std::string &file, PetscInt &nPts, type::RealVec2D &coords) |
Read the number Lagrangian points and their coordinates from a file. More... | |
PetscErrorCode | petibm::io::print (const std::string &info) |
Print information of a parallel object to standard output. More... | |
PetscErrorCode | petibm::io::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 | petibm::io::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 | petibm::io::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 | petibm::io::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 | petibm::io::writePetscLog (const MPI_Comm comm, const std::string &filePath) |
Write a summary of the PETSc logging into a ASCII file. More... | |
Implementations of I/O functions.
Definition in file io.cpp.