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

Method __init__

python/dolfinx/fem/element.py:25–41  ·  view source on GitHub ↗

Create a coordinate map element. Note: This initialiser is for internal use and not normally called in user code. Use :func:`coordinate_element` to create a CoordinateElement. Args: cmap: A C++ CoordinateElement.

(
        self, cmap: _cpp.fem.CoordinateElement_float32 | _cpp.fem.CoordinateElement_float64
    )

Source from the content-addressed store, hash-verified

23 _cpp_object: _cpp.fem.CoordinateElement_float32 | _cpp.fem.CoordinateElement_float64
24
25 def __init__(
26 self, cmap: _cpp.fem.CoordinateElement_float32 | _cpp.fem.CoordinateElement_float64
27 ):
28 """Create a coordinate map element.
29
30 Note:
31 This initialiser is for internal use and not normally called
32 in user code. Use :func:`coordinate_element` to create a
33 CoordinateElement.
34
35 Args:
36 cmap: A C++ CoordinateElement.
37 """
38 assert isinstance(
39 cmap, _cpp.fem.CoordinateElement_float32 | _cpp.fem.CoordinateElement_float64
40 )
41 self._cpp_object = cmap
42
43 @property
44 def dtype(self) -> np.dtype:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected