Re: [petsc-users] UNABLE to read '.mat' file with 'PetscViewerHDF5Open' (WSL-Ubuntu22.04)

2023-07-25 Thread maitri ksh
I tried using '$PETSC_DIR/$PETSC_ARCH/bin/h5dump myfile.mat', but it gave 'h5dump error: unable to open file "/path/to/directory/myfile.mat"', *saving* the *MATLAB file* with “*-v7.3*” option *solved* the issue. Thank you, Matthew & Samar. On Tue, Jul 25, 2023 at 12:18 PM Matthew Knepley wrote

Re: [petsc-users] UNABLE to read '.mat' file with 'PetscViewerHDF5Open' (WSL-Ubuntu22.04)

2023-07-25 Thread Samar Khatiwala
Another possibility is that the Matlab file wasn’t saved in HDF5. Try resaving it with the “-v7.3” option. Samar On Jul 25, 2023, at 10:18 AM, Matthew Knepley wrote: On Tue, Jul 25, 2023 at 3:12 AM maitri ksh mailto:maitri@gmail.com>> wrote: Hi, I am new to Petsc, here are some details of

Re: [petsc-users] UNABLE to read '.mat' file with 'PetscViewerHDF5Open' (WSL-Ubuntu22.04)

2023-07-25 Thread Matthew Knepley
On Tue, Jul 25, 2023 at 3:12 AM maitri ksh wrote: > Hi, > I am new to Petsc, here are some details of the relevant softwares I am > using: > 1. petsc-3.19.3 (on wsl-ubuntu22.04 platform) > 2. MATLAB-R2022a > 3. hdf5-1.10.7 (checked using 'pkg-config --modversion hdf5') > 4. configured using: './

[petsc-users] UNABLE to read '.mat' file with 'PetscViewerHDF5Open' (WSL-Ubuntu22.04)

2023-07-25 Thread maitri ksh
Hi, I am new to Petsc, here are some details of the relevant softwares I am using: 1. petsc-3.19.3 (on wsl-ubuntu22.04 platform) 2. MATLAB-R2022a 3. hdf5-1.10.7 (checked using 'pkg-config --modversion hdf5') 4. configured using: './configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --downlo