Skip to content

Commit

Permalink
Correct synchronous test for shiftSample, ticket:4530
Browse files Browse the repository at this point in the history
Note: application of subSample after shiftSample changes
relative shift to keep absolute shift equal.
(Modelica Spec 3.3 rev1, section 16.5.2 Sub-clock conversion operators)
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Sep 27, 2017
1 parent 0e5f04f commit 7511e8f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -205,7 +205,7 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// ========================================
// 1: factor(1/2) shift(0/1) event(false)
// 2: factor(1/1) shift(0/1) event(true)
// 3: factor(5/1) shift(2/3) event(false)
// 3: factor(5/1) shift(2/15) event(false)
// 4: factor(1/1) shift(2/3) event(false)
//
// synchronous features post-phase: synchronousFeatures
Expand Down Expand Up @@ -374,7 +374,7 @@ translateModel(SynchronousFeatures.ControlledMass); getErrorString();
// ========================================
// 1: factor(1/2) shift(0/1) event(false)
// 2: factor(1/1) shift(0/1) event(true)
// 3: factor(5/1) shift(2/3) event(false)
// 3: factor(5/1) shift(2/15) event(false)
// 4: factor(1/1) shift(2/3) event(false)
//
// true
Expand Down

0 comments on commit 7511e8f

Please sign in to comment.