Reading function using file dolfinx v 0.9.0

Hello,

I am converting an old code into fenicsX/doflinX. I installed fenicsX in my uni cluster using spack. I also added the py-fenics-dolfinx package. In my previous code, I used to read some heterogeneous parameters as xml files using dolfin legacy. I am trying to find an equivalent in dolfinX v0.9.0. I saw that read_function in xdmf does not work on this version. I tried to install adios4dolfinx. but I get the error that the module is not recognised.

These are the specs in the spack yaml file:

specs:

  • petsc+fortran+mumps+superlu-dist~trilinos
  • python
  • py-fenics-dolfinx@0.9.0
  • py-numpy
  • py-matplotlib
  • py-pandas
  • py-gmsh
  • fenics-dolfinx+adios2+petsc
  • py-fenics-dolfinx cflags=-O3 fflags=-O3
  • fenics-dolfinx@0.9.0+mpi+petsc
  • fenics-dolfinx@0.9.0
  • py-mpi4py
  • adios2+python
  • py-pip
    view: true
    concretizer:
    unify: true

Is there any alternative ? both for the installation of adios4dolfinx using spack and the extension of the file to use to read a function ?

Thank you !

For installing adios4dolfinx with spack see:
ModuleNotFoundError: No module named 'adios2' · Issue #158 · jorgensd/adios4dolfinx · GitHub and the referenced link in that comment for a full set of intructions