From bdf5e31c3e4679a2de4cf15b13a6c12a727a8343 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 8 Dec 2020 11:39:23 +0100 Subject: [PATCH] fixed: avoid unnecessary expensive refinement parameter calculations if we are shared, these are complete ignored further down. no reason to calculate them. useful for adaptive multi-patch fracture dynamics --- src/SIM/SIMinput.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SIM/SIMinput.C b/src/SIM/SIMinput.C index 1d8e927e..a17f875c 100644 --- a/src/SIM/SIMinput.C +++ b/src/SIM/SIMinput.C @@ -1430,7 +1430,7 @@ bool SIMinput::refine (const LR::RefineData& prm, Vectors& sol) std::vector prmloc(myModel.size(),LR::RefineData(prm)); std::vector refineIndices(myModel.size()); std::vector conformingIndices(myModel.size()); - bool changed = true; + bool changed = !this->getPatch(1)->isShared(); while (changed) { changed = false; for (size_t i = 0; i < myModel.size(); i++)