[petsc-users] question on matrix preallocation

Barry Smith bsmith at petsc.dev
Thu Jul 11 14:55:11 CDT 2024


  MatGetInfo() is the programmatic interface used to get this information.  You can also run a proggram with -info and grep for malloc.

  Barry


> On Jul 11, 2024, at 1:55 PM, Michael Povolotskyi <mpovolot at gmail.com> wrote:
> 
> This Message Is From an External Sender
> This message came from outside your organization.
> Hello,
> 
> is there an option in PETSC that allows to check at run time if a sparse 
> matrix has been preallocated correctly? I remember there was something 
> like that is the older versions, but cannot find it now.
> 
> The goal is to get rid of any possible time overhead due to dynamic 
> preallocation.
> 
> Thank you,
> 
> Michael.
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240711/7e063515/attachment-0001.html>


More information about the petsc-users mailing list