[petsc-users] Preallocation
    Barry Smith 
    bsmith at petsc.dev
       
    Sun Apr  2 20:09:34 CDT 2023
    
    
  
  Yes, but it would be interesting to see a comparison of timing between your current code and code with just a call to MatSetUp() and no calls to the preallocation routines.
  Barry
> On Apr 2, 2023, at 6:27 PM, Sanjay Govindjee <s_g at berkeley.edu> wrote:
> 
> I was looking at the release notes for 3.19.0 and noted the comment:
> Deprecate all MatPreallocate* routines. These are no longer needed since non-preallocated matrices will now be as fast as using them
> 
> My interpretation of this is that I can now comment out all the MatPreallocate* lines in my code and it will run just fine (and be as fast as before) and no other change are necessary -- with the side benefit of no longer having to maintain my preallocation code.
> 
> Have I read this correctly?
> 
> -sanjay
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230402/03d33e06/attachment.html>
    
    
More information about the petsc-users
mailing list