Re: [petsc-users] Null Pointer Issue (Eigen-Value-Problem with user input Matrices)

2023-07-25 Thread Barry Smith
You never called MatCreate(comm, ); > On Jul 25, 2023, at 6:06 PM, maitri ksh wrote: > > I am using the following setup: > 1. petsc-3.19.3 (on wsl-ubuntu22.04 platform) > 2. MATLAB-R2022a > 3. slepc-3.19.1 > 4. configured using: './configure --with-cc=gcc --with-cxx=g++ >

[petsc-users] Null Pointer Issue (Eigen-Value-Problem with user input Matrices)

2023-07-25 Thread maitri ksh
I am using the following setup: 1. petsc-3.19.3 (on wsl-ubuntu22.04 platform) 2. MATLAB-R2022a 3. slepc-3.19.1 4. configured using: './configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack --with-matlab --with-matlab-dir=/usr/local/MATLAB/R2022a

Re: [petsc-users] Question about using PETSc to generate matrix preconditioners

2023-07-25 Thread Jed Brown
I think random matrices will produce misleading results. The chance of randomly generating a matrix that resembles an application is effectively zero. I think you'd be better off with some model problems varying parameters that control the physical regime (e.g., shifts to a Laplacian, advection

[petsc-users] Question about using PETSc to generate matrix preconditioners

2023-07-25 Thread Sun, Yixuan via petsc-users
Hello PETSc team, My name is Yixuan, and I am a postdoc at MCS. We are working on a project where we want to predict the preconditioners from the corresponding matrices. For preliminary exploration purposes, we generated random matrices and their preconditioners using PETSc. The current deep

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

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

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