Skip to content

Commit

Permalink
refs modelica#4482: Print values in assertion message of VariableLimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 21, 2025
1 parent ff95fea commit 054ba3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Blocks/Nonlinear.mo
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ a lot by removing one strong nonlinearity from the initialization problem.
protected
Real simplifiedExpr "Simplified expression for homotopy-based initialization";
equation
assert(limit1 >= limit2, "Input signals are not consistent: limit1 < limit2");
assert(limit1 >= limit2, "Input signals are not consistent: limit1 = " + String(limit1, significantDigits=14) + " < limit2 = " + String(limit2, significantDigits=14));
simplifiedExpr = (if homotopyType == Types.VariableLimiterHomotopy.Linear then u
else if homotopyType == Types.VariableLimiterHomotopy.Fixed then ySimplified
else 0);
Expand Down

0 comments on commit 054ba3f

Please sign in to comment.