[petsc-users] DMDAGetAO and AODestroy
Miorelli, Federico
Federico.Miorelli at CGG.COM
Thu May 12 05:36:26 CDT 2016
In one of my subroutines I'm calling DMDAGetAO to get the application ordering from a DM structure.
After using it I was calling AODestroy.
Everything worked fine until I called the subroutine for the second time, when the program crashed.
Removing the call to AODestroy solved the crash.
Am I supposed to AODestroy the output of DMDAGetAO or not? I was worried that DMDAGetAO would allocate memory that I need to release.
Thanks,
Federico
______ ______ ______
Federico Miorelli
Senior R&D Geophysicist
Subsurface Imaging - General Geophysics Italy
CGG Electromagnetics (Italy) Srl
This email and any accompanying attachments are confidential. If you received this email by mistake, please delete
it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160512/1bdf11ef/attachment-0001.html>
More information about the petsc-users
mailing list