You never called MatCreate(comm, &B);
> On Jul 25, 2023, at 6:06 PM, maitri ksh <[email protected]> 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++
> --with-fc=gfortran --download-mpich --download-fblaslapack --with-matlab
> --with-matlab-dir=/usr/local/MATLAB/R2022a --download-hdf5 --with-hdf5=1'
>
> I am trying to solve an eigenvalue problem with user input matrices 'A.petsc'
> & 'B.petsc' using 'solveEigValProb.c', there was no issue during compiling
> but when I try to run the executable it produces error ('ERROR.txt')
> indicating a null pointer issue but I am not sure what the issue is.
>
> Maitri
> <solveEigvalProb.c><ERROR.txt>