AQUAgpusph 4.1.2
|
General program settings. More...
#include <ProblemSetup.h>
Data Structures | |
class | device |
General program settings. More... | |
Public Member Functions | |
sphSettings () | |
Constructor. | |
~sphSettings () | |
Destructor. | |
Data Fields | |
bool | save_on_fail |
Save the output in case of failure. | |
bool | debug_tools |
Setup the tools debugging mode. | |
std::string | base_path |
AQUAgpusph root path. | |
std::vector< ProblemSetup::sphSettings::device > | devices |
The list of devices to be considered. | |
General program settings.
These setting are set between the following XML tags:
Aqua::InputOutput::ProblemSetup::sphSettings::sphSettings | ( | ) |
Constructor.
|
inline |
Destructor.
std::string Aqua::InputOutput::ProblemSetup::sphSettings::base_path |
AQUAgpusph root path.
Usually this option is automatically set by the basic module, using the tag RootPath. This path is added to the OpenCL include paths.
bool Aqua::InputOutput::ProblemSetup::sphSettings::debug_tools |
Setup the tools debugging mode.
On the tools debugging mode the tools are executed one by one, while they are logged. No tool is launched until the previous one finished. This obviously has a quite negative impact on the performance, but can be of use to find the tool which is causing issues.
You can enable the tools debugging with the following tag: <DebugTools value="true" />
std::vector<ProblemSetup::sphSettings::device> Aqua::InputOutput::ProblemSetup::sphSettings::devices |
The list of devices to be considered.
Devices can be added with the tag Device
, for instance: <Device platform="0" device="0" type="GPU" />
In case MPI is enabled, devices are assigned to the processes in the same order they are declared in the XML file. Thus, the XML file and the MPI machine file must hold a strict relation
bool Aqua::InputOutput::ProblemSetup::sphSettings::save_on_fail |
Save the output in case of failure.
If true, the particles sets and simulation state will be saved in case of failure/fatal error. Otherwise the simulation will just stop.
You can disable save on fail with the following tag (save on fail is enabled by default): <SaveOnFail value="false" />