|
Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
|
Declares logic pertaining to reading and writing data. More...
#include <iomanip>#include <iostream>#include <memory>#include <sstream>#include <type_traits>#include <utility>#include "../global/global.h"#include "../grid/grid3D.h"#include "../io/AttrRecorderInterface.h"#include "../io/FieldWriter.h"#include "../io/FnameTemplate.h"#include "../io/WriterManager.h"#include "../utils/error_handling.h"

Go to the source code of this file.
Functions | |
| bool | Is_Root_Proc () |
| void | Print_Stats (Grid3D &G) |
| void | Write_Data (Grid3D &G, struct Parameters P, int nfile, const io::WriterManager &write_manager) |
| int | chprintf (const char *__restrict sdata,...) |
| template<typename T > | |
| std::string | to_string_exact (T const &input) |
| Convert a floating point number to a string such that it can be exactly deserialized back from a string to the same floating point number. | |
| void | Create_Log_File (struct Parameters P) |
| void | Write_Message_To_Log_File (const char *message) |
| void | Write_Debug (Real *Value, const char *fname, int nValues, int iProc) |
| void | Ensure_Dir_Exists (std::string dir_path) |
Declares logic pertaining to reading and writing data.
|
inline |
Local function that designates whether we are using a root-process. It gives a sensible result regardless of whether we are using MPI
| std::string to_string_exact | ( | T const & | input | ) |
Convert a floating point number to a string such that it can be exactly deserialized back from a string to the same floating point number.
| T | Any floating point type |
| [in] | input | The floating point number to convert |
| void Write_Data | ( | Grid3D & | G, |
| struct Parameters | P, | ||
| int | nfile, | ||
| const io::WriterManager & | write_manager | ||
| ) |
Write all data files
| G | the grid object |
| P | the parameter struct |
| nfile | the index corresponding to the current output |
| writer_manager | Manages the data writers. |