On Sep 2, 2010, at 10:51 AM, Benjamin Sanderse wrote: > Hello all, > > I figured out the coupling with Matlab and I can send back and forth matrices > and vectors between Petsc and Matlab. Actually, I send only once a matrix > from Matlab to Petsc and then repeatedly send new right hand sides from > Matlab->Petsc and the solution vector from Petsc->Matlab. That works great. > I know want to see if the matrix that is send from (serial) Matlab to Petsc > can be stored as a parallel matrix in Petsc so that subsequent computations > with different right hand sides can be performed in parallel by Petsc. Does > this simply work by using MatLoad and setting Mattype MPIAIJ? Or is something > more fancy required?
In theory this can be done using the same code as sequential only with parallel vectors VECMPI and matrices. MATMPIAIJ Barry > > Thanks, > > Ben
