Skip to content

Commit

Permalink
Remove the last few @OnFail numbers!
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Jan 27, 2024
1 parent 092022e commit d795a03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fmi2/rule-model/Rules/FmiModelDescription.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ validMinMax(fmd, evs) == allOf
-- @OnFail("%NAME: max %s not >= min %s", type.max, type.min)
( type.max >= type.min ),
-- @OnFail(1034, "%NAME: ScalarVariable %s min/max exceeds RealType %s at %#s",
-- @OnFail("%NAME: ScalarVariable %s min/max exceeds RealType %s at %#s",
-- ev.name, ev.fmi2ScalarVariable.declaredType, loc2str(ev.location))
( tdef <> nil and tdef.fmi2SimpleType.min <> nil and type.min <> nil =>
tdef.fmi2SimpleType.min <= type.min ),
-- @OnFail(1034, "%NAME: ScalarVariable %s min/max exceeds RealType %s at %#s",
-- @OnFail("%NAME: ScalarVariable %s min/max exceeds RealType %s at %#s",
-- ev.name, ev.fmi2ScalarVariable.declaredType, loc2str(ev.location))
( tdef <> nil and tdef.fmi2SimpleType.max <> nil and type.max <> nil =>
tdef.fmi2SimpleType.max >= type.max )
Expand Down
4 changes: 2 additions & 2 deletions fmi3/rule-model/Rules/ModelVariables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ validVariableAttributes(sv) ==
eVariability = <continuous>
and eInitial = nil -- (D)
and sv.start = nil
-- @OnFail(1461, "2.4.7 Independent variable must be Float at %#s",
-- @OnFail("2.4.7 Independent variable must be Float at %#s",
-- loc2str(sv.location))
and (is_Float64(sv) or is_Float32(sv)),
Expand Down Expand Up @@ -314,7 +314,7 @@ validVariableAttributes(sv) ==
<continuous> ->
eCausality in set {<input>, <output>, <local>, <independent>}
-- @OnFail(1463, "2.4.7 Continuous variable must be Real at %#s",
-- @OnFail("2.4.7 Continuous variable must be Real at %#s",
-- loc2str(sv.location))
and (is_Float64(sv) or is_Float32(sv))
end
Expand Down

0 comments on commit d795a03

Please sign in to comment.