MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __init__

Method __init__

python/dolfinx/fem/forms.py:48–75  ·  view source on GitHub ↗

Initialize a finite element form. Note: Forms should normally be constructed using :func:`form` and not using this class initialiser. This class is combined with different base classes that depend on the scalar type used in the Form.

(
        self,
        form: _cpp.fem.Form_complex64
        | _cpp.fem.Form_complex128
        | _cpp.fem.Form_float32
        | _cpp.fem.Form_float64,
        ufcx_form=None,
        code: str | list[str] | None = None,
        module: types.ModuleType | list[types.ModuleType] | None = None,
    )

Source from the content-addressed store, hash-verified

46 _code: str | list[str] | None
47
48 def __init__(
49 self,
50 form: _cpp.fem.Form_complex64
51 | _cpp.fem.Form_complex128
52 | _cpp.fem.Form_float32
53 | _cpp.fem.Form_float64,
54 ufcx_form=None,
55 code: str | list[str] | None = None,
56 module: types.ModuleType | list[types.ModuleType] | None = None,
57 ):
58 """Initialize a finite element form.
59
60 Note:
61 Forms should normally be constructed using :func:`form` and
62 not using this class initialiser. This class is combined
63 with different base classes that depend on the scalar type
64 used in the Form.
65
66 Args:
67 form: Compiled form object.
68 ufcx_form: UFCx form.
69 code: Form C++ code.
70 module: CFFI module.
71 """
72 self._code = code
73 self._ufcx_form = ufcx_form
74 self._cpp_object = form
75 self._module = module
76
77 @property
78 def ufcx_form(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected