Re: [petsc-users] MATLAB and PetSc

2014-04-23 Thread Barry Smith
On Apr 23, 2014, at 2:06 PM, Umut Tabak wrote: > On 04/23/2014 08:59 PM, Barry Smith wrote: >> >>No mex is not used; instead the MATLAB function calllib() is used which >> is a million times easier than messing with mex. To use PETSc from Matlab >> you need to ./configure PETSc with the o

Re: [petsc-users] MATLAB and PetSc

2014-04-23 Thread Umut Tabak
On 04/23/2014 08:59 PM, Barry Smith wrote: No mex is not used; instead the MATLAB function calllib() is used which is a million times easier than messing with mex. To use PETSc from Matlab you need to ./configure PETSc with the option —with-matlabIt does not work currently in parallel

Re: [petsc-users] MATLAB and PetSc

2014-04-23 Thread Barry Smith
On Apr 23, 2014, at 7:36 AM, Sudheer Kumar wrote: > Hi Barry, > > I have looked at code in bin/matlab/classes. It is not clear to me how to use > the code. Examples are in the examples/tutorials subdirectory of that directory. > Great if you could help me how to use these codes. So, with

Re: [petsc-users] MATLAB and PetSc

2014-04-23 Thread Sudheer Kumar
Hi Barry, I have looked at code in bin/matlab/classes. It is not clear to me how to use the code. Great if you could help me how to use these codes. So, with these codes can we run the parallel version of Petsc code from MATLAB. Is mex interface involved in compiling the Petsc code to MATLAB execu

Re: [petsc-users] MATLAB and PetSc

2014-04-22 Thread Barry Smith
PETSc does have a MATLAB interface in bin/matlab/classes that provides most of PETSc’s functionality directly to Matlab. Unfortunately we do not have the resources to maintain it, so it is a bit broken. If you are familiar with MATLAB and interfacing with C then git it a try and we can provid

Re: [petsc-users] MATLAB and PetSc

2014-04-22 Thread Sudheer Kumar
On Tue, Apr 22, 2014 at 9:41 PM, Barry Smith wrote: > How much Matlab code do you have that computes the Jacobian and functions > and is it parallel? How much Matlab code do you have that computes the Jacobian and functions and is it parallel? The MATLAB code that I am working with is of 1000s

Re: [petsc-users] MATLAB and PetSc

2014-04-22 Thread Barry Smith
On Apr 22, 2014, at 10:44 AM, Sudheer Kumar wrote: > I request for advice on the following: > > I have a MATLAB code that uses some Linear algebra (LA) and Linear equation > solver (LS) routines. I have to speed up this MATLAB code by using the i) MKL > routines for LA calls and ii) Petsc rou

[petsc-users] MATLAB and PetSc

2014-04-22 Thread Sudheer Kumar
I request for advice on the following: I have a MATLAB code that uses some Linear algebra (LA) and Linear equation solver (LS) routines. I have to speed up this MATLAB code by using the i) MKL routines for LA calls and ii) Petsc routines for LS calls. I was able to achieve the step (i) using the