Debian Codegraph @

debian/patches/force-adios2-mpi.patch

raw
1 --- a/src/adios4dolfinx/__init__.py
2 +++ b/src/adios4dolfinx/__init__.py
3 @@ -6,6 +6,16 @@
4
5 """Top-level package for ADIOS2Wrappers."""
6
7 +# Debian ships python3-adios2-serial and python3-adios2-mpi
8 +# with the mpi build being used if the code is run under mpirun -n N python3 file.py
9 +# regardless of the value of N (be it 1 or > 1).
10 +# If the user runs instead python3 file.py, the serial build will be imported.
11 +# Since adios4dolfinx always requires the mpi build, we will set an environment
12 +# variable to force it over the serial one, regardless of how the user run the code.
13 +import os
14 +os.environ["ADIOS2_ALWAYS_USE_MPI"] = "1"
15 +del os
16 +
17 from importlib.metadata import metadata
18
19 from .checkpointing import (