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 to

  • source: 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.

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

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: CeedQFunction

  • status: Boolean value to set as Fortran status