From f72890584fbf7a8957b5aced448cb008ca408913 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Wed, 19 May 2021 15:02:47 +0200 Subject: [PATCH] StimPlan Model Calculator: guard against inf/nan in stress calculation. --- .../StimPlanModel/RimStimPlanModelCalculator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelCalculator.cpp b/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelCalculator.cpp index 89e24b4193..7b8ef268af 100644 --- a/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelCalculator.cpp +++ b/ApplicationLibCode/ProjectDataModel/StimPlanModel/RimStimPlanModelCalculator.cpp @@ -436,6 +436,11 @@ bool RimStimPlanModelCalculator::calculateStressWithGradients( std::vector