This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Belonging to [master]: - OpenModelica/OMCompiler#2737 - #1059
- Loading branch information
1 parent
56d43b7
commit aa010e9
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// name: ClockConstructor1 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
|
||
model ClockConstructor1 | ||
Clock c1 = Clock(); | ||
Clock c2 = Clock(1); | ||
Clock c3 = Clock(1, 2); | ||
Clock c4 = Clock(intervalCounter = 1, resolution = 2); | ||
Clock c5 = Clock(1.0); | ||
Clock c6 = Clock(interval = 2.0); | ||
Clock c7 = Clock(time < 1); | ||
Clock c8 = Clock(time < 1, 1.0); | ||
Clock c9 = Clock(condition = time < 1, startInterval = 0.5); | ||
Clock c10 = Clock(c2, "ImplicitTrapezoid"); | ||
Clock c11 = Clock(c = c3, solverMethod = ""); | ||
end ClockConstructor1; | ||
|
||
// Result: | ||
// class ClockConstructor1 | ||
// Clock c1 = Clock(); | ||
// Clock c2 = Clock(1, 1); | ||
// Clock c3 = Clock(1, 2); | ||
// Clock c4 = Clock(1, 2); | ||
// Clock c5 = Clock(1.0); | ||
// Clock c6 = Clock(2.0); | ||
// Clock c7 = Clock(time < 1.0, 0.0); | ||
// Clock c8 = Clock(time < 1.0, 1.0); | ||
// Clock c9 = Clock(time < 1.0, 0.5); | ||
// Clock c10 = Clock(c2, "ImplicitTrapezoid"); | ||
// Clock c11 = Clock(c3, ""); | ||
// end ClockConstructor1; | ||
// endResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters