packages feed

aivika 5.3.1 → 5.4

raw patch · 5 files changed

+16/−4 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

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

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/Internal/Dynamics.hs view
@@ -74,7 +74,7 @@ -- | Run the 'Dynamics' computation in the final time point. runDynamicsInStopTime :: Dynamics a -> Simulation a runDynamicsInStopTime (Dynamics m) =-  Simulation $ m . integStopPoint+  Simulation $ m . simulationStopPoint  -- | Run the 'Dynamics' computation in all integration time points. runDynamicsInIntegTimes :: Dynamics a -> Simulation [IO a]
Simulation/Aivika/Internal/Event.hs view
@@ -334,7 +334,7 @@ enqueueEventWithStopTime :: Event () -> Event () 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.
Simulation/Aivika/Internal/Specs.hs view
@@ -27,6 +27,7 @@         integPointsStartingFrom,         integStartPoint,         integStopPoint,+        simulationStopPoint,         timeGrid,         pointAt) where @@ -200,7 +201,7 @@                            pointIteration = n,                            pointPhase = 0 } --- | Return the stop time point.+-- | Return the integration stop time point. integStopPoint :: Run -> Point integStopPoint r = point nu   where sc = runSpecs r@@ -210,6 +211,10 @@                            pointTime = basicTime sc n 0,                            pointIteration = n,                            pointPhase = 0 }++-- | Return the simulation stop time point.+simulationStopPoint :: Run -> Point+simulationStopPoint r = pointAt r (spcStopTime $ runSpecs r)  -- | Return the point at the specified time. pointAt :: Run -> Double -> Point
aivika.cabal view
@@ -1,5 +1,5 @@ name:            aivika-version:         5.3.1+version:         5.4 synopsis:        A multi-method simulation library description:     Aivika is a discrete event simulation (DES) framework with support of activity-oriented,