Class LBSSolverIO
Defined in File lbs_problem_io.h
Class Documentation
-
class LBSSolverIO
Public Static Functions
-
static bool ReadRestartData(LBSProblem &lbs_problem, const std::function<bool(hid_t)> &extra_reader = {})
-
static bool WriteRestartData(LBSProblem &lbs_problem, const std::function<bool(hid_t)> &extra_writer = {})
-
static void WriteFluxMoments(LBSProblem &lbs_problem, const std::string &file_base, std::optional<const std::reference_wrapper<std::vector<double>>> opt_src = std::nullopt)
Write a flux moments vector to a file.
- Parameters:
lbs_problem – LBS problem
file_base – File name base
opt_src – Optional source vector to write instead of the problem-owned flux moments.
-
static void ReadFluxMoments(LBSProblem &lbs_problem, const std::string &file_base, bool single_file, std::optional<std::reference_wrapper<std::vector<double>>> opt_dest = std::nullopt)
Read a flux moments vector from a file.
- Parameters:
lbs_problem – LBS problem
file_base – File name base
single_file – Single data file or data file per rank?
opt_dest – Optional destination vector to populate instead of the problem-owned flux moments.
-
static bool ReadRestartData(LBSProblem &lbs_problem, const std::function<bool(hid_t)> &extra_reader = {})