Skip to content

Commit

Permalink
MueLu: added no reuse to reuse loop in StandardReuse
Browse files Browse the repository at this point in the history
This is mostly for extra information. For instance, running 2D laplacian
produces

Setup #1: no reuse                  0.02187 (1)
Setup #2: reuse none                0.01018 (1)
Setup trilinos#3: reuse smoothers           0.01025 (1)
Setup trilinos#4: reuse tentative P         0.006917 (1)
Setup trilinos#5: reuse smoothed P and R    0.002708 (1)

This means that about 50% of no reuse time is actually spent in the
interpreter, and the real construction time take 50%. This also shows
that there is no reuse happening in smoothers which could not be seen if
one only compare #1 and trilinos#3.
  • Loading branch information
aprokop committed Aug 11, 2016
1 parent ff064ab commit 6ab9e30
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,10 @@ int main_(Teuchos::CommandLineProcessor &clp, int argc, char *argv[]) {
// Setup #2-inf (reuse)
// =========================================================================
std::vector<std::string> reuseTypes, reuseNames;
reuseTypes.push_back("S"); reuseNames.push_back("smoothers");
reuseTypes.push_back("tP"); reuseNames.push_back("tentative P");
reuseTypes.push_back("RP"); reuseNames.push_back("smoothed P and R");
reuseTypes.push_back("none"); reuseNames.push_back("none");
reuseTypes.push_back("S"); reuseNames.push_back("smoothers");
reuseTypes.push_back("tP"); reuseNames.push_back("tentative P");
reuseTypes.push_back("RP"); reuseNames.push_back("smoothed P and R");

for (size_t k = 0; k < reuseTypes.size(); k++) {
out << thickSeparator << " " << reuseTypes[k] << " " << thickSeparator << std::endl;
Expand Down

0 comments on commit 6ab9e30

Please sign in to comment.