CeedQFunction

int CeedQFunctionRegister(const char *name, const char *source, CeedInt vec_length, CeedQFunctionUser f, int (*init)(Ceed, const char*, CeedQFunction))

Register a gallery QFunction.

Library Developer Functions

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”

  • vec_length – Vector length. Caller must ensure that number of quadrature points is a multiple of vec_length.

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

Returns

An error code: 0 - success, otherwise - failure

static int CeedQFunctionFieldSet(CeedQFunctionField *f, const char *field_name, CeedInt size, CeedEvalMode eval_mode)

Set a CeedQFunction field, used by CeedQFunctionAddInput/Output.

Library Developer Functions

Parameters
Returns

An error code: 0 - success, otherwise - failure

static int CeedQFunctionFieldView(CeedQFunctionField field, CeedInt field_number, bool in, FILE *stream)

View a field of a CeedQFunction.

Utility Functions

Parameters
  • field[in] QFunction field to view

  • field_number[in] Number of field being viewed

  • in[in] true for input field, false for output

  • stream[in] Stream to view to, e.g., stdout

Returns

An error code: 0 - success, otherwise - failure

int CeedQFunctionSetFortranStatus(CeedQFunction qf, bool status)

Set flag to determine if Fortran interface is used.

Backend Developer Functions

Parameters
  • qf – CeedQFunction

  • status – Boolean value to set as Fortran status

Returns

An error code: 0 - success, otherwise - failure