(dtype)
| 206 | raise RuntimeError("Expressions with more that one Argument not allowed.") |
| 207 | |
| 208 | def _create_expression(dtype): |
| 209 | if np.issubdtype(dtype, np.float32): |
| 210 | return _cpp.fem.create_expression_float32 |
| 211 | elif np.issubdtype(dtype, np.float64): |
| 212 | return _cpp.fem.create_expression_float64 |
| 213 | elif np.issubdtype(dtype, np.complex64): |
| 214 | return _cpp.fem.create_expression_complex64 |
| 215 | elif np.issubdtype(dtype, np.complex128): |
| 216 | return _cpp.fem.create_expression_complex128 |
| 217 | else: |
| 218 | raise NotImplementedError(f"Type {dtype} not supported.") |
| 219 | |
| 220 | _entity_maps = ( |
| 221 | [entity_map._cpp_object for entity_map in entity_maps] |
nothing calls this directly
no outgoing calls
no test coverage detected