fem.backends.get_backend

fem.backends.get_backend(backend=None)

Resolve a backend name (or pass an instance through).

None selects the default direct jax-fem backend.

Raises

Name Type Description
ImportError If the backend’s dependencies are missing (message names the extra to install).
KeyError If the name is not registered.