Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Simulation.run(steps) continues past (steps) - need FreeGLUT patch in setup scripts #27
Simulations with graphics keep running, regardless of the number of steps provided as an input parameter.
Workaround: run your simulations without graphics.
Proposed Solution: The core of this issue is that our rendering engine (GLUT) takes over the simulation loop. The ultimate solution will require installation of FreeGlut, which is possible on Linux but would currently require extensive steps for Mac users. A patch script for FreeGlut should be developed, and added to the setup scripts. After this, minor tweaks can be made to tgSimViewGraphics to correct the behavior.
Just to add a little more importance/urgency to this one, this same issue is affecting our ability to debug. We can only step through the code until we need to render, at which point GlutMainLoop takes over and effectively forces a "continue" instead of a "next" in gdb.
However, it does take a Mac user to debug/test this, so I can't assign it to myself.