On Wed, 17 Apr 2013, Michael Povolotskyi wrote: > On 04/17/2013 01:37 PM, Matthew Knepley wrote: > > On Wed, Apr 17, 2013 at 1:23 PM, Michael Povolotskyi <mpovolot at purdue.edu > > <mailto:mpovolot at purdue.edu>> wrote: > > > > Dear Petsc developers, > > does the function MatDenseGetArray allocate additional memory or > > just returns a pointer to existing memory ? > > > > > > Returns a pointer. > > > > Matt > Thank you, one more detail about MatDenseGetArray > is this statement correct: > if a dense matrix is serial, the data is stored in memory in a column-wise > order, but if a dense matrix is distributed the data is stored in a row-wise > order?
nope - the rows are distributed across procs - but within the processor - the data is stored column-wise Satish
