packages feed

aivika-transformers 5.3.1 → 5.4

raw patch · 5 files changed

+18/−6 lines, 5 filesdep ~aivikaPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aivika

API changes (from Hackage documentation)

+ Simulation.Aivika.Trans.Internal.Specs: simulationStopPoint :: Run m -> Point m

Files

CHANGELOG.md view
@@ -1,4 +1,11 @@ +Version 5.4+-----++* A more correct treating of the stop time. Earlier, the final+  integration time point was used instead of the stop time in+  some functions.+ Version 5.3.1 ----- 
Simulation/Aivika/Trans/Internal/Dynamics.hs view
@@ -70,7 +70,7 @@ runDynamicsInStopTime :: Dynamics m a -> Simulation m a {-# INLINABLE runDynamicsInStopTime #-} runDynamicsInStopTime (Dynamics m) =-  Simulation $ m . integStopPoint+  Simulation $ m . simulationStopPoint  -- | Run the 'Dynamics' computation in all integration time points. runDynamicsInIntegTimes :: Monad m => Dynamics m a -> Simulation m [m a]
Simulation/Aivika/Trans/Internal/Event.hs view
@@ -220,7 +220,7 @@ {-# INLINABLE enqueueEventWithStopTime #-} enqueueEventWithStopTime e =   Event $ \p ->-  let p0 = integStopPoint $ pointRun p+  let p0 = simulationStopPoint $ pointRun p   in invokeEvent p $ enqueueEventWithPoints [p0] e  -- | It allows cancelling the event.@@ -393,5 +393,5 @@ {-# INLINABLE enqueueEventIOWithStopTime #-} enqueueEventIOWithStopTime e =   Event $ \p ->-  let p0 = integStopPoint $ pointRun p+  let p0 = simulationStopPoint $ pointRun p   in invokeEvent p $ enqueueEventIOWithPoints [p0] e
Simulation/Aivika/Trans/Internal/Specs.hs view
@@ -27,6 +27,7 @@         integPointsStartingFrom,         integStartPoint,         integStopPoint,+        simulationStopPoint,         timeGrid,         pointAt) where @@ -136,7 +137,7 @@                            pointIteration = n,                            pointPhase = 0 } --- | Return the stop time point.+-- | Return the integration stop time point. integStopPoint :: Run m -> Point m integStopPoint r = point nu   where sc = runSpecs r@@ -146,6 +147,10 @@                            pointTime = basicTime sc n 0,                            pointIteration = n,                            pointPhase = 0 }++-- | Return the simulation stop time point.+simulationStopPoint :: Run m -> Point m+simulationStopPoint r = pointAt r (spcStopTime $ runSpecs r)  -- | Return the point at the specified time. pointAt :: Run m -> Double -> Point m
aivika-transformers.cabal view
@@ -1,5 +1,5 @@ name:            aivika-transformers-version:         5.3.1+version:         5.4 synopsis:        Transformers for the Aivika simulation library description:     This package is a generalization of the aivika [1] simulation library@@ -175,7 +175,7 @@                      random >= 1.0.0.3,                      mwc-random >= 0.13.0.0,                      vector >= 0.10.0.1,-                     aivika >= 5.3.1+                     aivika >= 5.4      other-extensions:   FlexibleContexts,                         FlexibleInstances,