AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Data Fields
Aqua::InputOutput::ProblemSetup::sphSettings Class Reference

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::devicedevices
 The list of devices to be considered.
 

Detailed Description

General program settings.

These setting are set between the following XML tags:

<Settings>
</Settings>
See also
Aqua::InputOutput::ProblemSetup

Constructor & Destructor Documentation

◆ sphSettings()

Aqua::InputOutput::ProblemSetup::sphSettings::sphSettings ( )

Constructor.

◆ ~sphSettings()

Aqua::InputOutput::ProblemSetup::sphSettings::~sphSettings ( )
inline

Destructor.

Field Documentation

◆ base_path

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.

◆ debug_tools

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" />

◆ devices

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

◆ save_on_fail

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" />


The documentation for this class was generated from the following files: