From 6ab9e30b21c68e9952e5589f620dbbab5927bd8e Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Tue, 29 Mar 2016 12:21:38 -0600 Subject: [PATCH] MueLu: added no reuse to reuse loop in StandardReuse 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 #3: reuse smoothers 0.01025 (1) Setup #4: reuse tentative P 0.006917 (1) Setup #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 #3. --- .../muelu/example/advanced/multiplesolve/StandardReuse.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/muelu/example/advanced/multiplesolve/StandardReuse.cpp b/packages/muelu/example/advanced/multiplesolve/StandardReuse.cpp index 32d49a75e9d7..1e4b47ba29f0 100644 --- a/packages/muelu/example/advanced/multiplesolve/StandardReuse.cpp +++ b/packages/muelu/example/advanced/multiplesolve/StandardReuse.cpp @@ -406,9 +406,10 @@ int main_(Teuchos::CommandLineProcessor &clp, int argc, char *argv[]) { // Setup #2-inf (reuse) // ========================================================================= std::vector 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;