the generic-parallel interface for material properties, built on the generic interface: the code evaluating a material property at a point is written by GenericMaterialPropertyInterfaceBase (see writePointEvaluation) in a function object. The generated function of batches gives this function object to the runtime of the interface (see MFront/GenericParallelMaterialProperty/Evaluate.hxx), with the primitive of the backend (see MFront/GenericParallel/Batch.hxx).
More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericParallelMaterialPropertyInterface.hxx>
|
| static std::string | getName () |
| static void | writePointEvaluation (std::ostream &, const MaterialPropertyDescription &, const PointEvaluationOptions &) |
| | write the code evaluating a material property at a point, shared by the generic, cyrano and generic-parallel interfaces: physical bounds of the inputs, bounds of the inputs, body of the material property, physical bounds and bounds of the output. The variables are checked in the order of the inputs, the output being the last one. The physical bounds always make the evaluation fail. The bounds make it fail with the strict policy, and are reported with the warning policy: as with the generic interface, an unknown policy is treated as the None policy. The checks are disabled by the given macro, or not written if the runtime checks are disabled. The variables (inputs, parameters, output) and the out of bounds policy (mfront_out_of_bounds_policy) must be declared by the caller.
|
| static std::size_t | getPhysicalBoundCheck (const std::size_t, const bool) |
| static std::size_t | getBoundCheck (const MaterialPropertyDescription &, const std::size_t, const bool) |
|
|
std::unique_ptr< const AbstractBackend > | backend |
| | backend to be used
|
the generic-parallel interface for material properties, built on the generic interface: the code evaluating a material property at a point is written by GenericMaterialPropertyInterfaceBase (see writePointEvaluation) in a function object. The generated function of batches gives this function object to the runtime of the interface (see MFront/GenericParallelMaterialProperty/Evaluate.hxx), with the primitive of the backend (see MFront/GenericParallel/Batch.hxx).
◆ getFunctionName()
◆ getHeaderFileName()
| std::string mfront::GenericParallelMaterialPropertyInterface::getHeaderFileName |
( |
const std::string & | | ) |
const |
|
nodiscardoverrideprotectedvirtual |
◆ getInterfaceHeaderFiles()
| std::vector< std::string > mfront::GenericParallelMaterialPropertyInterface::getInterfaceHeaderFiles |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getInterfaceName()
| std::string mfront::GenericParallelMaterialPropertyInterface::getInterfaceName |
( |
| ) |
const |
|
nodiscardoverrideprotectedvirtual |
◆ getInterfaceNameInCamelCase()
| std::string mfront::GenericParallelMaterialPropertyInterface::getInterfaceNameInCamelCase |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getInterfaceNameInUpperCase()
| std::string mfront::GenericParallelMaterialPropertyInterface::getInterfaceNameInUpperCase |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getLibraryDescription()
append the generated material property to the given library description. This method allows to choose to which library is attached the material property (which is not the case of the getTargetsDescription method).
- Parameters
-
| [in] | d | targets description |
| [in] | l | library description |
| [in] | mpd | material property description |
Reimplemented from mfront::GenericMaterialPropertyInterfaceBase.
◆ getName()
| std::string mfront::GenericParallelMaterialPropertyInterface::getName |
( |
| ) |
|
|
static |
- Returns
- the interface name
◆ getOutOfBoundsPolicyEnumerationPrefix()
| std::string mfront::GenericParallelMaterialPropertyInterface::getOutOfBoundsPolicyEnumerationPrefix |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getSourceFileName()
| std::string mfront::GenericParallelMaterialPropertyInterface::getSourceFileName |
( |
const std::string & | | ) |
const |
|
nodiscardoverrideprotectedvirtual |
◆ getTargetsDescription()
◆ getTypesDescription()
| TypesDescription mfront::GenericParallelMaterialPropertyInterface::getTypesDescription |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ setOptions()
| void mfront::GenericParallelMaterialPropertyInterface::setOptions |
( |
const DataMap & | | ) |
|
|
overridevirtual |
◆ treatKeyword()
- Parameters
-
| [in] | k | : keyword to be treated |
| [in] | i | list of interfaces to which the keyword is restricted |
| [in] | p | : iterator to the current token |
| [in] | pe | : iterator past the end of the file |
- Returns
- a pair. The first entry is true if the keyword was treated by the interface. The second entry is an iterator after the last token treated.
Reimplemented from mfront::GenericMaterialPropertyInterfaceBase.
◆ writeHeaderFile()
◆ writeOutputFiles()
◆ writeSrcFile()
The documentation for this struct was generated from the following file: