From 558782cb5ecaee27a1119656f298d2d0f0e72d22 Mon Sep 17 00:00:00 2001 From: malphil Date: Wed, 10 Apr 2024 08:44:44 -0600 Subject: [PATCH 1/3] Output MultiPhys description to Ostream --- packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp b/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp index 6155dd7f092f..1fef0579b3df 100644 --- a/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp +++ b/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp @@ -312,6 +312,8 @@ void MultiPhys:: } oss << std::endl; + out << oss.str(); + for (int i = 0; i < nBlks_; i++) { arrayOfHierarchies_[i]->describe(out, GetVerbLevel()); } From c4bfd0da9b282369d859b77d229a9d021b09374c Mon Sep 17 00:00:00 2001 From: malphil Date: Wed, 10 Apr 2024 08:45:42 -0600 Subject: [PATCH 2/3] Accept Tuechos::null for array of coordinates passed to MultiPhys ctor --- packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp b/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp index 1fef0579b3df..f160da48684b 100644 --- a/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp +++ b/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp @@ -142,7 +142,9 @@ void MultiPhys::compute(bool reuse) { // Generate the (iii,iii) Hierarchy for (int iii = 0; iii < nBlks_; iii++) { - arrayOfParamLists_[iii]->sublist("user data").set("Coordinates", arrayOfCoords_[iii]); + if(arrayOfCoords_ != Teuchos::null){ + arrayOfParamLists_[iii]->sublist("user data").set("Coordinates", arrayOfCoords_[iii]); + } bool wantToRepartition = false; if (paramListMultiphysics_->isParameter("repartition: enable")) From b41d41cfc935b83d80d73c3446bdbe0b073397dc Mon Sep 17 00:00:00 2001 From: malphil Date: Thu, 30 May 2024 17:21:14 -0600 Subject: [PATCH 3/3] Apply clang formatting patch --- packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp b/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp index f160da48684b..5a04f8ebe20f 100644 --- a/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp +++ b/packages/muelu/src/Operators/MueLu_MultiPhys_def.hpp @@ -142,7 +142,7 @@ void MultiPhys::compute(bool reuse) { // Generate the (iii,iii) Hierarchy for (int iii = 0; iii < nBlks_; iii++) { - if(arrayOfCoords_ != Teuchos::null){ + if (arrayOfCoords_ != Teuchos::null) { arrayOfParamLists_[iii]->sublist("user data").set("Coordinates", arrayOfCoords_[iii]); }