From 802534a68ef15457ac339847353dc7e3d6ca9aa7 Mon Sep 17 00:00:00 2001 From: Michael Wetter Date: Fri, 30 Aug 2024 08:37:36 -0700 Subject: [PATCH] Removed wrong parameter keyword For #3978 --- Buildings/UsersGuide/ReleaseNotes/Version_12_0_0.mo | 9 ++++++--- Buildings/Utilities/Math/Functions/round.mo | 9 ++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Buildings/UsersGuide/ReleaseNotes/Version_12_0_0.mo b/Buildings/UsersGuide/ReleaseNotes/Version_12_0_0.mo index 36d2ea6f2c3..545f3590976 100644 --- a/Buildings/UsersGuide/ReleaseNotes/Version_12_0_0.mo +++ b/Buildings/UsersGuide/ReleaseNotes/Version_12_0_0.mo @@ -286,12 +286,15 @@ that do not lead to wrong simulation results, e.g., units are wrong or errors in documentation):

- - -
xxx +
Buildings.Controls.OBC.CDL
xxx +
Buildings.Utilities.Math.Functions.round xxx. + Removed wrong parameter declaration which causes an error in + Dymola 2025x beta1.
+ This is for + #3978.
diff --git a/Buildings/Utilities/Math/Functions/round.mo b/Buildings/Utilities/Math/Functions/round.mo index 3d279ba5dcf..6523d1bc05a 100644 --- a/Buildings/Utilities/Math/Functions/round.mo +++ b/Buildings/Utilities/Math/Functions/round.mo @@ -7,7 +7,7 @@ function round "Round real number to specified digits" output Real y "Connector of Real output signal"; protected - parameter Real fac = 10^n "Factor used for rounding"; + Real fac = 10^n "Factor used for rounding"; algorithm y := if (x>0) then floor(x*fac + 0.5)/fac else ceil(x*fac - 0.5)/fac; @@ -46,6 +46,13 @@ Buildings.Controls.OBC.CDL.Reals.Round. ", revisions="