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. |
Beta Was this translation helpful? Give feedback.
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! |
Beta Was this translation helpful? Give feedback.
In
src,defines.hpp
, comment//#define BENCHMARK
and 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_BOUNDARIES
andSURFACE
. 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!