Hi all, 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.
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?). I configured via: ./configure \ PETSC_ARCH=gcc-matlab \ --with-debugging \ --with-cc=gcc-4.3 \ --with-fc=gfortran-4.3 \ --with-cxx=g++-4.3 \ --with-shared-libraries \ --with-matlab-engine \ --with-matlab \ --download-f2cblaslapack \ --with-mpi=0 \ --with-x=0 \ --with-x11=0 Any suggestions are greatly appreciated. Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120312/6bac5886/attachment.htm>
