This file implements the evaluation of a material property on a batch of points with the primitive of a backend (see MFront/GenericParallel/Batch.hxx). The generated functions only provide the evaluation at one point.
More...
|
| TFEL_HOST_DEVICE constexpr BatchStatistics | mfront::gpmp::getPointStatistics (const size_type i, const PointStatus &s) noexcept |
| constexpr void | mfront::gpmp::accumulate (Statistics &s, const BatchStatistics &r) noexcept |
| | accumulate the statistics of a batch
|
| void | mfront::gpmp::initialize (OutputStatus &s) noexcept |
| | initialize an output status: success, no failure, no unreliable result
|
| template<typename Function> |
| int | mfront::gpmp::handleExceptions (OutputStatus *const s, Function &&f) noexcept |
| | call the body of a generated function (see mfront::generic_parallel::handleExceptions). The output status is complete even if an exception is thrown before the batch data are checked.
|
| template<size_type N> |
| bool | mfront::gpmp::check (OutputStatus &s, const BatchData &d, const std::array< const char *, N > &names, const bool runtime_checks) |
| | check the data of a batch: number of points, output, arguments
|
| template<typename Evaluation, size_type N, typename Apply> |
| int | mfront::gpmp::evaluateBatch (OutputStatus &s, const BatchData &d, const Evaluation &evaluation, const std::array< const char *, N > &names, const bool runtime_checks, const ReportFunction report_function, const Apply &apply) |
| | evaluate a material property at the points of a batch with the primitive of a backend. The batch data are checked (see check), and the statistics are reported by the report function of the material property, unless the calling code gave statistics.
|
| template<typename OutputStatus> |
| int | mfront::gpmp::report (OutputStatus &s, const int status, const std::string_view msg) noexcept |
| | set the status and the error message of an output status
|
This file implements the evaluation of a material property on a batch of points with the primitive of a backend (see MFront/GenericParallel/Batch.hxx). The generated functions only provide the evaluation at one point.
- Date
- 09/11/2026
- Copyright
- Copyright (C) 2006-2025 CEA/DEN, EDF R&D. All rights reserved. This project is publicly released under either the GNU GPL Licence with linking exception or the CECILL-A licence. A copy of thoses licences are delivered with the sources of TFEL. CEA or EDF may also distribute this project under specific licensing conditions.
template<typename Evaluation, size_type N, typename Apply>
| int mfront::gpmp::evaluateBatch |
( |
OutputStatus & | s, |
|
|
const BatchData & | d, |
|
|
const Evaluation & | evaluation, |
|
|
const std::array< const char *, N > & | names, |
|
|
const bool | runtime_checks, |
|
|
const ReportFunction | report_function, |
|
|
const Apply & | apply ) |
evaluate a material property at the points of a batch with the primitive of a backend. The batch data are checked (see check), and the statistics are reported by the report function of the material property, unless the calling code gave statistics.
- Template Parameters
-
| Evaluation | evaluation at one point (see PointEvaluator) |
| N | number of arguments |
| Apply | callable object such that apply(s, n, e, h, f) applies the function object f at the n points of a batch with the execution e (see BatchExecution) and reports the statistics in the output status s through the handler h (see StatisticsHandler), and returns the status |
- Parameters
-
| [out] | s | output status |
| [in] | d | batch data |
| [in] | evaluation | evaluation at one point |
| [in] | names | names of the arguments, for the error messages |
| [in] | runtime_checks | if false, the runtime checks are disabled: the number of arguments is not checked, and the statistics are neither combined nor reported, the evaluation at one point never reporting an event |
| [in] | report_function | report function of the material property |
| [in] | apply | primitive of the backend |
- Returns
- the status