Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 54b1072

Browse files
committedFeb 4, 2025·
KneeSimulator: Made more FDK options optional with ??= operator.
1 parent aa2e16f commit 54b1072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎Application/Examples/KneeSimulator/Model/AnyKneeSimulator.any

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Main = {
1919

2020
AnyBodyStudy KneeSimulatorStudy = {
2121
// A low kinematic tolerance will help FDK optimization to converge
22-
Kinematics.KinematicTol = 1e-8;
22+
Kinematics.KinematicTol ??= 1e-8;
2323

2424
AnyFolder& Parameters = .Parameters;
2525
AnyFolder& Model = .Model;
@@ -46,8 +46,8 @@ Main = {
4646
InverseDynamics.ForceDepKin.LocalSearchMaxSteps ??= 15; // Reduced from default 25. Speeds up convergense.
4747

4848

49-
InverseDynamics.ForceDepKin.MaxNewtonStep = FDK_MaxNewtonStep;
50-
InverseDynamics.ForceDepKin.LocalSearchOnOff = FDK_LocalSearchOnOff;
49+
InverseDynamics.ForceDepKin.MaxNewtonStep ??= FDK_MaxNewtonStep;
50+
InverseDynamics.ForceDepKin.LocalSearchOnOff ??= FDK_LocalSearchOnOff;
5151

5252
#ifdef TOOLS_MODELUTILITIES_VIDEO_CAMERACLASSTEMPLATE
5353
// Include functions to generate a video:

0 commit comments

Comments
 (0)
Please sign in to comment.