[petsc-users] [MEF-QUAR] MatGetArray question

Barry Smith bsmith at mcs.anl.gov
Wed Apr 17 16:14:18 CDT 2013


On Apr 17, 2013, at 11:35 AM, Michael Povolotskyi <mpovolot at purdue.edu> wrote:

> Dear Petsc developers,
> Does the function MatGetArray allocates additional memory, or it simply returns a pointer to the existing memory?
> I'm talking about an MPI dense matrix.

   Return a pointer to the existing memory.

   Barry

> 
> Thank you.
> Michael.
> 
> -- 
> Michael Povolotskyi, PhD
> Research Assistant Professor
> Network for Computational Nanotechnology
> 207 S Martin Jischke Drive
> Purdue University, DLR, room 441-10
> West Lafayette, Indiana 47907
> 
> phone: +1-765-494-9396
> fax: +1-765-496-6026
> 



More information about the petsc-users mailing list