Skip to content

Use MAT_SORTED_FULL in MatHYPRE

Pierre Jolivet requested to merge jolivet/feature-mathypre-sortedfull into master

This issue has already been discussed with @stefanozampini some months ago, I don't remember if it was either on BitBucket or @petsc-dev.

Anyway, I really want to avoid having hypre copy my matrix twice. I have a custom local patch, but it would best to have it there. Thus, I propose to use the option MAT_SORTED_FULL in MatHYPRE to check whether or not hypre_AuxParCSRMatrixNeedAux should be set to true or false. In my application, on a rather small example, with Massif, I go from a peak memory consumption of 848.9MB to 449.7MB.

Merge request reports