How to enable graphics? #66
|
I have try to uncomment INTERACTIVE_GRAPHICS in defnies.hpp, but still get a text mode benchmark .exe file only. |
Replies: 1 comment
|
In Once the graphics window opens, press P to start/pause the simulation. There is a help menu with key H. Have fun! |

In
src,defines.hpp, comment//#define BENCHMARKand uncomment#define INTERACTIVE_GRAPHICS. Then, insrc/setup.cpp, uncomment one of themain_setup()functions, compile and run. Depending on the setup, you might need to enable some extensions insrc/defines.hpp: for example, for the "hydraulic jump" setup (text-search this insrc/setup.cpp), you need to uncomment the extensionsVOLUME_FORCE,EQUILIBRIUM_BOUNDARIESandSURFACE. The software will tell you in the console during startup if additional extensions are needed.Once the graphics window opens, press P to start/pause the simulation. There is a help menu with key H. Have fun!