Skip to content

time loop conditional in monolithic.py #42

@keiyamamo

Description

@keiyamamo

Inside monolithic.py, we have a conditional for time loop as follows.

while t <= T + dt / 10 and not stop: # + dt / 10 is a hack to ensure that we take the final time step t == T

I think + dt/10 should really be -dt/10 to ensure t==T because adding dt/10 makes it go into while loop even when t==T and this will end up t=T+dt as the final time step.

I wanna make sure that others agree on this, as this is important part of turtle.
Could I have your opinion on this?
@johannesring @jorgensd @dbruneau-mie

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