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
This commit is contained in:
Arne Morten Kvarving 2020-12-08 11:39:23 +01:00 committed by Kjetil Andre Johannessen
parent f6c847cf75
commit bdf5e31c3e

View File

@ -1430,7 +1430,7 @@ bool SIMinput::refine (const LR::RefineData& prm, Vectors& sol)
std::vector<LR::RefineData> prmloc(myModel.size(),LR::RefineData(prm));
std::vector<IntSet> refineIndices(myModel.size());
std::vector<IntSet> 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++)