pub type CeedQFunctionUser = Option<unsafe extern "C" fn(ctx: *mut c_void, Q: CeedInt, in_: *const *const CeedScalar, out: *const *mut CeedScalar) -> c_int>;Expand description
Handle for the user provided CeedQFunction callback function
@param[in,out] ctx User-defined context set using CeedQFunctionSetContext() or NULL
@param[in] Q Number of quadrature points at which to evaluate
@param[in] in Array of pointers to each input argument in the order provided by the user in CeedQFunctionAddInput().
Each array has shape [dim, num_comp, Q] where dim is the geometric dimension for \ref CEED_EVAL_GRAD (dim=1 for \ref
CEED_EVAL_INTERP) and num_comp is the number of field components (num_comp=1 for scalar fields). This results in indexing the ith input at
quadrature point j as in[i][(d*num_comp + c)*Q + j].
@param[out] out Array of pointers to each output array in the order provided using CeedQFunctionAddOutput().
The shapes are as above for \a in.
@return An error code: 0 - success, otherwise - failure
@ingroup CeedQFunction
Aliased Type§
pub enum CeedQFunctionUser {
None,
Some(unsafe extern "C" fn(*mut c_void, i32, *const *const f64, *const *mut f64) -> i32),
}