AQUAgpusph 5.0.4
|
Simulation configuration data. More...
#include <ProblemSetup.hpp>
Data Structures | |
struct | sphDefinitions |
OpenCL kernels compilation definitions. More... | |
class | sphParticlesSet |
Particles set data. More... | |
class | sphSettings |
General program settings. More... | |
struct | sphTimingParameters |
Simulation time flow options. More... | |
class | sphTool |
Tool to be executed. More... | |
struct | sphVariables |
Simulation variables registered. More... |
Public Member Functions | |
ProblemSetup () | |
Constructor. | |
ProblemSetup (const ProblemSetup &p) | |
Copy constructor. | |
~ProblemSetup () | |
Destructor. | |
void | dims (unsigned int n) |
Set the number of dimensions. | |
unsigned int | dims () const |
Get the the number of dimensions. | |
void | nCmdQueues (unsigned int n) |
Set the maximum number of main OpenCL queues to be spawned. | |
unsigned int | nCmdQueues () const |
Get the maximum number of main OpenCL queues to be spawned. | |
unsigned int | toolInstances (ProblemSetup::sphTool *tool) |
Helper function to get the number of already defined instances of the same tool. |
Data Fields | |
sphSettings | settings |
Stored settings. | |
sphVariables | variables |
Variables storage. | |
sphDefinitions | definitions |
Definitions storage. | |
std::vector< sphTool * > | tools |
Array of tools. | |
std::vector< sphTool * > | reports |
Array of reports. | |
struct Aqua::InputOutput::ProblemSetup::sphTimingParameters | time_opts |
std::vector< sphParticlesSet * > | sets |
Array of particles sets. |
Simulation configuration data.
All the XML input configuration files should have the following form:
Where "..." is the configuration data.
See the user manual chapter 4.
Aqua::InputOutput::ProblemSetup::ProblemSetup | ( | ) |
Constructor.
Aqua::InputOutput::ProblemSetup::ProblemSetup | ( | const ProblemSetup & | p | ) |
Copy constructor.
Aqua::InputOutput::ProblemSetup::~ProblemSetup | ( | ) |
Destructor.
|
inline |
Get the the number of dimensions.
|
inline |
Set the number of dimensions.
n | The number of dimensions, either 2 or 3 |
|
inline |
Get the maximum number of main OpenCL queues to be spawned.
|
inline |
Set the maximum number of main OpenCL queues to be spawned.
n | The number of command queues |
unsigned int Aqua::InputOutput::ProblemSetup::toolInstances | ( | ProblemSetup::sphTool * | tool | ) |
Helper function to get the number of already defined instances of the same tool.
Since the same tool can be added several times (using wildcards), at the time of removing it the user should be careful before of checking that it is the last remaining instance.
tool | Tool instance to look for |
sphDefinitions Aqua::InputOutput::ProblemSetup::definitions |
Definitions storage.
std::vector<sphTool*> Aqua::InputOutput::ProblemSetup::reports |
Array of reports.
Reports are a some kind of special tools dedicated to generate summary outputs.
std::vector<sphParticlesSet*> Aqua::InputOutput::ProblemSetup::sets |
Array of particles sets.
sphSettings Aqua::InputOutput::ProblemSetup::settings |
Stored settings.
struct Aqua::InputOutput::ProblemSetup::sphTimingParameters Aqua::InputOutput::ProblemSetup::time_opts |
std::vector<sphTool*> Aqua::InputOutput::ProblemSetup::tools |
Array of tools.
sphVariables Aqua::InputOutput::ProblemSetup::variables |
Variables storage.