[petsc-users] DMDAVecRestoreArrayF90

Zhao-Yi Yan 13971216897 at 163.com
Mon Mar 31 14:12:25 CDT 2025



Hi, Dear developers,


I am using 3.22.4 and find that


 DMDAVecGetArrayF90 


should be used in pair with 



DMDAVecRestoreArrayF90 


And should NOT be used in pair with


 DMDAVecRestoreArray 


Otherwise, strange memory leakage can be caused.


I know F90-style function has been discarded in 3.23 version. So this is a simply record mail; However, it is appreciated if any comment feedback.


Best regard,


Zhao-Yi Yan
 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250401/838589e2/attachment.html>


More information about the petsc-users mailing list