Skip to content

Commit

Permalink
- fix Util.if_
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23019 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Oct 28, 2014
1 parent 4453b90 commit ed2525c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeMain.mo
Expand Up @@ -101,7 +101,7 @@ protected
Real stepSize;
Integer numberOfIntervals;
algorithm
numberOfIntervals := Util.if_(inumberOfIntervals <= 0, 1, inumberOfIntervals);
numberOfIntervals := if inumberOfIntervals <= 0 then 1 else inumberOfIntervals;
stepSize := (stopTime -. startTime) /. intReal(numberOfIntervals);
simSettings := SimCode.SIMULATION_SETTINGS(
startTime, stopTime, numberOfIntervals, stepSize, tolerance,
Expand Down

0 comments on commit ed2525c

Please sign in to comment.