[petsc-users] MATLAB Classes

Barry Smith bsmith at mcs.anl.gov
Mon Mar 12 19:16:03 CDT 2012


   Please send all the error output from MATLAB when it crashes to petsc-maint at mcs.anl.gov. In particular you may need to run MATLAB from a terminal with matlab -nodesktop to get the traceback as it crashes.

   Barry

On Mar 12, 2012, at 5:27 PM, Jeremy Roberts wrote:

> 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
> 
> 



More information about the petsc-users mailing list