Type Definition libceed_sys::bind_ceed::CeedQFunctionUser [−][src]
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 object describing the user CeedQFunction
@param ctx user-defined context set using CeedQFunctionSetContext() or NULL
@param Q number of quadrature points at which to evaluate
@param 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 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