|
AQUAgpusph 5.0.4
|
OpenCL kernels compilation definitions. More...
#include <ProblemSetup.hpp>
Public Member Functions | |
| sphDefinitions () | |
| Constructor. | |
| ~sphDefinitions () | |
| Destructor. | |
| void | define (const std::string name, const std::string value, const bool evaluate) |
| Add a new definition. | |
| bool | isDefined (std::string name) |
| Reports if a the required name has been already defined. | |
| void | undefine (std::string name) |
| Undefine a registered definition. | |
Data Fields | |
| std::vector< std::string > | names |
| Name of the definition. | |
| std::vector< std::string > | values |
| Value of the definition, empty for named definitions. | |
| std::vector< bool > | evaluations |
OpenCL kernels compilation definitions.
In order to make AQUAgpusph more extensible, preprocessor definitions can be set, such that they will be defined for all the compiled kernels.
3 types of definitions can be practised:
The definitions are set between the following XML tags:
|
inline |
Constructor.
|
inline |
Destructor.
| void Aqua::InputOutput::ProblemSetup::sphDefinitions::define | ( | const std::string | name, |
| const std::string | value, | ||
| const bool | evaluate ) |
Add a new definition.
It can be repeated, such that the definition will be overwritten later by the last instance found.
| name | Name of the definition. |
| value | Value of the definition, empty for named definitions. |
| evaluate | True if the value should be evaluated as a math expression, false otherwise. |

| bool Aqua::InputOutput::ProblemSetup::sphDefinitions::isDefined | ( | std::string | name | ) |
Reports if a the required name has been already defined.
| name | Name of the definition. |
| void Aqua::InputOutput::ProblemSetup::sphDefinitions::undefine | ( | std::string | name | ) |
Undefine a registered definition.
| name | Name of the definition. |
| std::vector<bool> Aqua::InputOutput::ProblemSetup::sphDefinitions::evaluations |
True if the value should be evaluated as a math expression, false otherwise
| std::vector<std::string> Aqua::InputOutput::ProblemSetup::sphDefinitions::names |
Name of the definition.
| std::vector<std::string> Aqua::InputOutput::ProblemSetup::sphDefinitions::values |
Value of the definition, empty for named definitions.