basix.quadrature

Functions to manipulate quadrature types.

Functions

string_to_type(rule)

Convert a string to a Basix QuadratureType enum.

type_to_string(quadraturetype)

Convert a Basix QuadratureType enum to a string.

basix.quadrature.string_to_type(rule: str) QuadratureType

Convert a string to a Basix QuadratureType enum.

Parameters

rule – The quadrature rule as a string.

Returns

The quadrature type

basix.quadrature.type_to_string(quadraturetype: QuadratureType) str

Convert a Basix QuadratureType enum to a string.

Parameters

quadraturetype – The quadrature type

Returns

The quadrature rule as a string.