[petsc-users] A problem with MPI Derived Data Type and 'calloc'

Jed Brown jedbrown at mcs.anl.gov
Fri Apr 13 17:41:57 CDT 2012


On Fri, Apr 13, 2012 at 17:38, Zhenglun (Alan) Wei
<zhenglun.wei at gmail.com>wrote:

>     I have a final question on it. Is it taken a lot of memory for doing
> this? As I understand, pointers won't occupy many memories and it works
> like an alias. It will not, to my limit knowledge, take much extra memory
> by doing this.


A pointer takes about as much space as a floating point value, so that
array of pointers costs about 1*N compared to the N*N matrix.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120413/13427abf/attachment.htm>


More information about the petsc-users mailing list