Hi all,<div><br></div><div>I'm trying access PETSc from MATLAB via the classes. I'm working on a 64 bit Ubuntu 11.04 system with MATLAB R2011b and PETSc 3.2-p6.</div><div><br></div><div>I get PETSc built, but running e.g. "exKSP.m" leads to a segmentation fault at ksp.Solve(A,b,x). As a second test, I added MatMult to matlabheader.h, and that worked using A,x, and b of the exKSP example. My guess is that something goofy is happening with BLAS/LAPACK. I tried to run "valgrind matlab -nodesktop -nosplash < exKSP.m" without success (maybe there's another way to include valgrind?).</div>
<div><br></div><div>I configured via:</div><div><br></div><div><div>./configure \</div><div>PETSC_ARCH=gcc-matlab \</div><div>--with-debugging \</div><div>--with-cc=gcc-4.3 \</div><div>--with-fc=gfortran-4.3 \</div><div>
--with-cxx=g++-4.3 \</div><div>--with-shared-libraries \</div><div>--with-matlab-engine \</div><div>--with-matlab \</div><div>--download-f2cblaslapack \</div><div>--with-mpi=0 \</div><div>--with-x=0 \</div><div>--with-x11=0 </div>
</div><div><br></div><div>Any suggestions are greatly appreciated.</div><div><br></div><div>Jeremy</div><div><br></div><div><br></div>