-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CT invalid dt:0 #138
Comments
Hmm... This one is very odd. Sim is providing a value of step( dt ) {
assert && assert( typeof dt === 'number' && dt > 0, `invalid dt: ${dt}` ); I was surprised to see this in Sim // Don't run the simulation on steps back in time (see https://github.com/phetsims/joist/issues/409)
if ( dt >= 0 ) {
this.stepSimulation( dt );
} So either the expression @samreid @jonathanolson mentioning you because I suspect that you have the most familiarity with Sim. |
I don't see anything in phetsims/joist#409 (mentioned in the Sim.js comment above) that indicates why it's desirable to call |
Transferring this issue from diffusion to gas-properties, since the former is a derivative of the latter. |
I recall leaving |
That sounds reasonable. This will need to be resolved before gas-properties begins RC testing. Shooting for week of July 8. |
@jonathanolson remarked that |
Leaving self-assigned to make the change in Sim.js |
Proposed fix committed, @pixelzoom can you please review? |
Proposed fix looks straightforward and correct. But... In #138 (comment), @samreid said:
From #138 (comment), it looks like the check for |
Testing on Mac Chrome, I'm seeing the first call to |
Thanks for the clarification. Closing. |
The text was updated successfully, but these errors were encountered: