Skip to content

Add method for setting default backend#61

Open
finsberg wants to merge 2 commits into
mainfrom
finsberg/set-default-backend
Open

Add method for setting default backend#61
finsberg wants to merge 2 commits into
mainfrom
finsberg/set-default-backend

Conversation

@finsberg

@finsberg finsberg commented Jun 29, 2026

Copy link
Copy Markdown
Member

The default backend at the moment is adios2. However, if I would like to use h5py as the backend for all operations, then I currently need to pass the backend argument to all functions.

In this PR I specify a _DEFAULT_BACKEND which is adios2 which will be used if there is no backend specified but add the options to specify a new default backend using e.g

io4dolfinx.set_default_backend("h5py")

@finsberg finsberg requested a review from jorgensd June 29, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant