Skip to content

Commit

Permalink
Replace 'Inline=false' with late inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar committed May 17, 2023
1 parent 620ece5 commit 669100b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -8,7 +8,7 @@ function maxWithoutEvent
algorithm
y := if u1 > u2 then u1 else u2;
annotation (
Inline=false,
LateInline=true,
derivative=maxWithoutEvent_d,
Documentation(info="<html>
<h4>Syntax</h4>
Expand Down
Expand Up @@ -11,7 +11,7 @@ function maxWithoutEvent_d
algorithm
y_d := if u1 > u2 then u1_d else u2_d;
annotation (
Inline=false,
LateInline=true,
derivative(order=2) = maxWithoutEvent_dd,
Documentation(info="<html>
<p>
Expand Down
Expand Up @@ -13,7 +13,8 @@ function maxWithoutEvent_dd
algorithm
y_dd := if u1 > u2 then u1_dd else u2_dd;
annotation (
Inline=true, Documentation(info="<html>
LateInline=true,
Documentation(info="<html>
<p>
This is a derivative of function
<a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.Internal.maxWithoutEvent_d\">maxWithoutEvent_d</a>,
Expand Down

0 comments on commit 669100b

Please sign in to comment.