I took a look at the modified mwe you sent -- immediately noticing that you
read though the whole thing,
which is amazing, considering that this is a google group!
So, thanks again for your time and effort, it is really appreciated!
:-)
I have been busy doing the following with our little toy problem:
(i) Upgraded to deal.ii v9.2.0 with candi, together with PETSc 3.13.1 (and
Trilinos 12.18.1).
(ii) Further stripped down the mwe and deleted unnecessary parts and moved all
but the mmult() out of the 'main loop'.
So, I still observe the following:
using Trilinos, all is fine.
and using PETSc, using the call
leftMatrix.mmult(result, rightMatrix)
seems fine, whereas calling
leftMatrix.mmult(result, rightMatrix, vector)
still results in a memory leak for me.
Could you verify that again for me please?
I'm running this program and watching memory consumption in 'top', looking at
the 'virt' and 'res' columns. It's growing very slowly: after 3.5 minutes, I'm
now at about 2GB and 1GB, respectively. Is this about as much as you get as well?
Looking at the code in question, we end up in this function:
https://github.com/dealii/dealii/blob/master/source/lac/petsc_matrix_base.cc#L494-L561
Interestingly, I believe that your case specifically goes into line 539
(please confirm), which then calls MatDuplicate. But we never delete that
object again -- one could suspect that there needs to be a MatDestroy at the
end of that block. Would you be interested in trying that out?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/d02757ea-653d-87cd-6c32-f6a4f8ba56c0%40colostate.edu.