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

Barry Smith bsmith at petsc.dev
Tue Jul 25 17:13:42 CDT 2023


  You never called MatCreate(comm, &B);

> On Jul 25, 2023, at 6:06 PM, maitri ksh <maitri.ksh at gmail.com> 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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230725/b5d99c85/attachment.html>


More information about the petsc-users mailing list