Closed ebchin closed 1 year ago
@ebchin Did you run some DMD tests through valgrind to verify that all the memory is freed? Other memory leaks in libROM may be found, but it would be good at least to check the DMD classes.
@ebchin Did you run some DMD tests through valgrind to verify that all the memory is freed? Other memory leaks in libROM may be found, but it would be good at least to check the DMD classes.
Thanks for the suggestion, @dylan-copeland. I ran dg_advection
(serial) and valgrind found ~50 leaks in initialize_matrix()
and factorize()
in scalapack_f_wrapper.f90
. I also fixed a few leaks in constructDMD()
.
I just verified all of the other DMD examples are still working and I ran valgrind on heat_conduction
. All of the leaks identified in heat_conduction
within CAROM::DMD
methods were limited to factorize()
and initialize_matrix()
. If there are no other concerns, I will squash and merge later today. Thanks!
I just verified all of the other DMD examples are still working and I ran valgrind on
heat_conduction
. All of the leaks identified inheat_conduction
withinCAROM::DMD
methods were limited tofactorize()
andinitialize_matrix()
. If there are no other concerns, I will squash and merge later today. Thanks!
Please go ahead and squash merge
This PR adds destructors to
delete
allocated memory inCAROM::DMD
,CAROM::NonuniformDMD
, andCAROM::AdaptiveDMD
.