Skip to content

better documentation for behavior of "edge" events scheduled for exactly the end time of a simulation run #138

@filchristou

Description

@filchristou

When I run the docs example https://juliadynamics.github.io/ConcurrentSim.jl/stable/#Example I get exactly the output shown.

But then if I run run again I get further output:

julia> run(sim, 2)
slow 2.0
fast 2.0

Is this the intended functionality ?
I would say that "slow 2.0" and "fast 2.0" should either be printed the first time I call run(sim, 2) or not be printed at all. In the docs you say

The simulation will then stop when the internal clock reaches 10 but will not process any events scheduled for time 10. This is similar to a new environment where the clock is 0 but (obviously) no events have yet been processed.

So I guess, "slow 2.0" and "fast 2.0" shouldn't be printed even when I call run(sim, 2) again ?

Overall, it's pretty confusing that the edge events are called only the second time I call run and I have the impression it shouldn't be this way ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions