[petsc-users] Limiting the number of vectors allocated at a time by fgmres etc.
Wells, David
drwells at email.unc.edu
Tue Feb 10 16:31:53 CST 2026
Hello,
I've been profiling the memory usage of my solver and it looks like a huge number (roughly half) of allocations are from KSPFGMRESGetNewVectors(). I read through the source code and it looks like these vectors are allocated ten at a time (FGMRES_DELTA_DIRECTIONS) in a couple of places inside that KSP. Is there a way to change this value? If not - how hard would it be to add an API to set a different initial value for that? These vectors take up a lot of memory and I would rather just one at a time.
Best,
David Wells
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260210/1f720aee/attachment-0001.html>
More information about the petsc-users
mailing list