Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Beutlich <modelica@tbeu.de>
  • Loading branch information
tobolar and beutlich committed Jan 20, 2021
1 parent 2b05105 commit 5c74dab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Modelica/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ model FreeMotionScalarInit
annotation (Dialog(tab="Animation", group="if animation = true", enable=animation and use_r));

protected
parameter Boolean enforceStates=
if use_angle and (Integer(angle_1_stateSelect) + Integer(angle_2_stateSelect) + Integer(angle_3_stateSelect) > 3) then true else false
final parameter Boolean enforceStates=
use_angle and (Integer(angle_1_stateSelect) + Integer(angle_2_stateSelect) + Integer(angle_3_stateSelect) > 3)
"= true, if either of angle shall be used as states (StateSelect.always)";
parameter Boolean enforceStatesDer=
if use_angle and use_angle_d and
(Integer(angle_d_1_stateSelect) + Integer(angle_d_2_stateSelect) + Integer(angle_d_3_stateSelect) > 3) then true else false
final parameter Boolean enforceStatesDer=
use_angle and use_angle_d and
(Integer(angle_d_1_stateSelect) + Integer(angle_d_2_stateSelect) + Integer(angle_d_3_stateSelect) > 3)
"= true, if either of angle_d shall be used as states (StateSelect.always)";

Modelica.Mechanics.MultiBody.Joints.Internal.InitPosition initPosition(
Expand Down

0 comments on commit 5c74dab

Please sign in to comment.