ORNL-CEES / mfmg

MFMG is an open-source library implementing matrix-free multigrid methods.
https://mfmg.readthedocs.io
BSD 3-Clause "New" or "Revised" License
13 stars 8 forks source link

Avoid calculating the end iterator repeatedly #178

Closed masterleinad closed 5 years ago

masterleinad commented 5 years ago

It turned out that calculating the row end iterator for TrilinosWrappers::SparseMatrix objects is really expensive. Storing it instead cuts down the run time for matrix-free runs with FastAP by a factor 4-7.

codecov-io commented 5 years ago

Codecov Report

Merging #178 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #178   +/-   ##
=======================================
  Coverage   87.21%   87.21%           
=======================================
  Files          53       53           
  Lines        2846     2846           
=======================================
  Hits         2482     2482           
  Misses        364      364
Impacted Files Coverage Δ
source/dealii/dealii_hierarchy_helpers.cc 99.06% <100%> (ø) :arrow_up:
...rce/dealii/dealii_matrix_free_hierarchy_helpers.cc 99.03% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7fac16e...2945465. Read the comment docs.