This file builds the data of a batch of points and calls a function generated by the generic-parallel interface for material properties, for the tests of all the backends.
More...
#include <array>
#include <cstddef>
#include "MFront/GenericParallelMaterialProperty/MaterialProperty.h"
|
| template<std::size_t N> |
| constexpr std::array< mfront_gmp_size_type, N > | contiguous () noexcept |
| template<std::size_t N> |
| int | evaluate (const mfront_gpmp_BatchMaterialPropertyPtr f, mfront_gpmp_OutputStatus &s, mfront_gmp_real *const output, const mfront_gmp_size_type output_stride, const std::array< const mfront_gmp_real *, N > &args, const std::array< mfront_gmp_size_type, N > &strides, const mfront_gmp_size_type n, const mfront_gmp_OutOfBoundsPolicy p, const TestExecution &e={}, int *const statuses=nullptr, const mfront_gmp_size_type nargs=N) |
| | evaluate a material property on a batch of points
|
This file builds the data of a batch of points and calls a function generated by the generic-parallel interface for material properties, for the tests of all the backends.
- Date
- 20/10/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.
◆ contiguous()
template<std::size_t N>
| std::array< mfront_gmp_size_type, N > contiguous |
( |
| ) |
|
|
constexprnoexcept |
- Returns
- the strides of N contiguous arguments
◆ evaluate()
template<std::size_t N>
| int evaluate |
( |
const mfront_gpmp_BatchMaterialPropertyPtr | f, |
|
|
mfront_gpmp_OutputStatus & | s, |
|
|
mfront_gmp_real *const | output, |
|
|
const mfront_gmp_size_type | output_stride, |
|
|
const std::array< const mfront_gmp_real *, N > & | args, |
|
|
const std::array< mfront_gmp_size_type, N > & | strides, |
|
|
const mfront_gmp_size_type | n, |
|
|
const mfront_gmp_OutOfBoundsPolicy | p, |
|
|
const TestExecution & | e = {}, |
|
|
int *const | statuses = nullptr, |
|
|
const mfront_gmp_size_type | nargs = N ) |
evaluate a material property on a batch of points
- Returns
- the status returned by the function
- Parameters
-
| [in] | f | function generated for the material property |
| [out] | s | output status |
| [out] | output | output values |
| [in] | output_stride | stride of the output |
| [in] | args | pointers to the values of the arguments |
| [in] | strides | strides of the arguments |
| [in] | n | number of points |
| [in] | p | out of bounds policy |
| [in] | e | execution of the evaluation |
| [out] | statuses | statuses of the points, or null |
| [in] | nargs | number of arguments given to the function |