Add method for setting default backend#61
Conversation
Agree! I added some docs in 2924e13 |
| "write_function_on_input_mesh", | ||
| "write_mesh_input_order", | ||
| "write_attributes", | ||
| "write_data", |
There was a problem hiding this comment.
Because there is no import for write_data. If you add it back you will see that your linter is complaining (write_data is present in __all__ but not present in module).
| "read_point_data", | ||
| "read_timestamps", | ||
| "get_backend", | ||
| "set_default_backend", |
There was a problem hiding this comment.
Should we have a get_default_backend as well?
|
We should revise the circle/curving test, as done in: https://github.com/FEniCS/dolfinx/pull/4205/changes and add a deprecation notice. We should also start deprecating things such as the real function space and the blocked Newton solver, as well as transfer meshtags to submesh as they are now in v0.11. I guess all deprecation warnings should be added now, and then removed from scifem at the next DOLFINx release? |
The default backend at the moment is
adios2. However, if I would like to useh5pyas the backend for all operations, then I currently need to pass the backend argument to all functions.In this PR I specify a
_DEFAULT_BACKENDwhich isadios2which will be used if there is no backend specified but add the options to specify a new default backend using e.g