Re: [petsc-users] Make error --download-hdf5-fortran-bindings=1

2022-09-08 Thread Barry Smith
> On Sep 8, 2022, at 8:38 PM, Park, Heeho via petsc-users > wrote: > > Hi PETSc Developers, > > I am having trouble compiling with the --download-hdf5-fortran-bindings=yes > option on Sandia’s HPC system. > It compiles with make version 3.82, but fails to compile with make version > 4.2.1

Re: [petsc-users] Using matrix-free with KSP

2022-09-08 Thread Barry Smith
> On Sep 8, 2022, at 1:47 PM, Tu, Jiannan wrote: > > Barry, > > Thank you very much. > > DMDASetBlockFills() needs two input arrays specifying sparsity pattern. In my > case, I have 26 components at each grid. Is it correct that I need to have > two arrays of 26x26 elements with value 1

Re: [petsc-users] Using matrix-free with KSP

2022-09-08 Thread Tu, Jiannan
Barry, Thank you very much. DMDASetBlockFills() needs two input arrays specifying sparsity pattern. In my case, I have 26 components at each grid. Is it correct that I need to have two arrays of 26x26 elements with value 1 for coupling and 0 for no coupling? Also how to determine when the

Re: [petsc-users] Read and write HDF5 files

2022-09-08 Thread Jed Brown
It sounds like the PETSc inside your container was not built with --download-hdf5 (or --with-hdf5). That can be fixed by updating the Dockerfile and rebuilding the image. Quentin Chevalier writes: > Hello PETSc users ! > > I'm trying to use PETSc routine to read and write complex vectors to

Re: [petsc-users] Read and write HDF5 files

2022-09-08 Thread Matthew Knepley
On Thu, Sep 8, 2022 at 7:44 AM Quentin Chevalier < quentin.cheval...@polytechnique.edu> wrote: > Hello PETSc users ! > > I'm trying to use PETSc routine to read and write complex vectors to > binary files in parallel. > > I'm using dolfinx and petsc4py inside a docker container. My end goal is >

[petsc-users] Read and write HDF5 files

2022-09-08 Thread Quentin Chevalier
Hello PETSc users ! I'm trying to use PETSc routine to read and write complex vectors to binary files in parallel. I'm using dolfinx and petsc4py inside a docker container. My end goal is to write a dolfinx Function object to file, then read it again. My current code goes something like :