[petsc-users] MatCopy and MatSetValue consume most 99 percentage of runtime

Vijay S. Mahadevan vijay.m at gmail.com
Wed Apr 20 06:46:35 CDT 2011


Thanks for the clarification Jed. But zeroing more entries than necessary
would still trigger malloc calls. Would it not ?

Vijay
On Apr 20, 2011 5:05 AM, "Jed Brown" <jed at 59a2.org> wrote:
> On Wed, Apr 20, 2011 at 05:08, Vijay S. Mahadevan <vijay.m at gmail.com>
wrote:
>
>> Barry, just to confirm, are you saying that MatZeroEntries would
>> nullify the preallocation completely if called before
>> AssmeblyBegin/End ?
>>
>
> I can't think of a way that would happen. It may zero more entries than
> necessary, but it shouldn't forget the preallocation. Note that the
> preallocation in DMGetMatrix() and many other libraries actually insert
> explicit zeros in the locations it has preallocated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110420/ba224320/attachment.htm>


More information about the petsc-users mailing list