<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div> You never called MatCreate(comm, &B);<br><div><br><blockquote type="cite"><div>On Jul 25, 2023, at 6:06 PM, maitri ksh <maitri.ksh@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div>I am using the following setup:</div><div>1. petsc-3.19.3 (on wsl-ubuntu22.04 platform)</div><div>2. MATLAB-R2022a</div><div>3. slepc-3.19.1</div><div>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'</div><div><br></div><div>I am trying to solve an eigenvalue problem with user input matrices 'A.petsc' & 'B.petsc' using '<b>solveEigValProb.c</b>', there was no issue during compiling but when I try to run the executable it produces error ('<b>ERROR.txt</b>') indicating a null pointer issue but I am not sure what the issue is.</div><div><br></div><div>Maitri</div></div>
<span id="cid:f_lkiu6xmp0"><solveEigvalProb.c></span><span id="cid:f_lkiu84a61"><ERROR.txt></span></div></blockquote></div><br></body></html>