CeedQFunction¶
-
int
CeedQFunctionRegister
(const char *name, const char *source, CeedInt vlength, CeedQFunctionUser f, int (*init)(Ceed, const char*, CeedQFunction))¶ Register a gallery QFunction.
Library Developer Functions
- Return
An error code: 0 - success, otherwise - failure
- Parameters
name
: Name for this backend to respond tosource
: Absolute path to source of QFunction, “\path\CEED_DIR\gallery\folder\file.h:function_name”vlength
: Vector length. Caller must ensure that number of quadrature points is a multiple of vlength.f
: Function pointer to evaluate action at quadrature points. See Public API for CeedQFunction.init
: Initialization function called by CeedQFunctionInit() when the QFunction is selected.
-
static int
CeedQFunctionFieldSet
(CeedQFunctionField *f, const char *fieldname, CeedInt size, CeedEvalMode emode)¶ Set a CeedQFunction field, used by CeedQFunctionAddInput/Output.
Library Developer Functions
- Return
An error code: 0 - success, otherwise - failure
- Parameters
f
: CeedQFunctionFieldfieldname
: Name of QFunction fieldsize
: Size of QFunction field, (ncomp * dim) for CEED_EVAL_GRAD or (ncomp * 1) for CEED_EVAL_NONE, CEED_EVAL_INTERP, and CEED_EVAL_WEIGHTemode
: CEED_EVAL_NONE to use values directly, CEED_EVAL_INTERP to use interpolated values, CEED_EVAL_GRAD to use gradients, CEED_EVAL_WEIGHT to use quadrature weights.
-
static int
CeedQFunctionFieldView
(CeedQFunctionField field, CeedInt fieldnumber, bool in, FILE *stream)¶ View a field of a CeedQFunction.
Utility Functions
- Return
An error code: 0 - success, otherwise - failure
- Parameters
[in] field
: QFunction field to view[in] fieldnumber
: Number of field being viewed[in] in
: true for input field, false for output[in] stream
: Stream to view to, e.g., stdout
-
int
CeedQFunctionSetFortranStatus
(CeedQFunction qf, bool status)¶ Set flag to determine if Fortran interface is used.
Backend Developer Functions
- Return
An error code: 0 - success, otherwise - failure
- Parameters
qf
: CeedQFunctionstatus
: Boolean value to set as Fortran status