tfel
Loading...
Searching...
No Matches
batch.hxx File Reference

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"

Classes

struct  TestExecution
 execution of an evaluation: statistics and execution policy More...

Functions

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

Detailed Description

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

Function Documentation

◆ 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]ffunction generated for the material property
[out]soutput status
[out]outputoutput values
[in]output_stridestride of the output
[in]argspointers to the values of the arguments
[in]stridesstrides of the arguments
[in]nnumber of points
[in]pout of bounds policy
[in]eexecution of the evaluation
[out]statusesstatuses of the points, or null
[in]nargsnumber of arguments given to the function