AQUAgpusph 4.1.2
|
Input/Output files manager. This class acts as a base class, controlling the subclasses which will load/save the files. More...
#include <FileManager.h>
Public Member Functions | |
FileManager () | |
Constructor. | |
~FileManager () | |
Destructor. | |
void | inputFile (std::string path) |
Set the main XML input file path. | |
std::string | inputFile () |
Get the main XML input file path. | |
ProblemSetup & | problemSetup () |
Get the simulation setup, extracted from the XML definition files. | |
CalcServer::CalcServer * | load () |
Load the input files, generating the calculation server. | |
void | save (float t) |
Save the output data files. | |
void | waitForSavers () |
Wait for the parallel saving threads. | |
Input/Output files manager. This class acts as a base class, controlling the subclasses which will load/save the files.
Aqua::InputOutput::FileManager::FileManager | ( | ) |
Constructor.
Aqua::InputOutput::FileManager::~FileManager | ( | ) |
Destructor.
|
inline |
Get the main XML input file path.
AQUAgpusph simulations are built on top of a XML definition file. Such file can later include another XML definition files, such that modules can be easily created.
void Aqua::InputOutput::FileManager::inputFile | ( | std::string | path | ) |
Set the main XML input file path.
AQUAgpusph simulations are built on top of a XML definition file. Such file can later include another XML definition files, such that modules can be easily created.
path | XML input file path. |
CalcServer::CalcServer * Aqua::InputOutput::FileManager::load | ( | ) |
Load the input files, generating the calculation server.
Depends on:
|
inline |
Get the simulation setup, extracted from the XML definition files.
AQUAgpusph simulations are built on top of a XML definition file. Such file can later include another XML definition files, such that modules can be easily created. The simulation data read from such XML files is stored in this Aqua::InputOutput::ProblemSetup structure
void Aqua::InputOutput::FileManager::save | ( | float | t | ) |
Save the output data files.
AQUAgpusph is saving both, the XML simulation definition file, and the particles field values in the required formats. This information can be indistinctly used for postprocessing purposes, or as initial condition to resume the simulation.
t | Simulation time |
void Aqua::InputOutput::FileManager::waitForSavers | ( | ) |
Wait for the parallel saving threads.
Some savers may optionally launch parallel threads to save the data, in an asynchronous way, in order to improve the performance. In such a case, AQUAgpusph shall wait them to finish before proceeding to destroy the data