Skip to content

How to enable graphics? #66

Closed Answered by ProjectPhysX
edisonchan asked this question in Q&A
Discussion options

You must be logged in to vote

In src,defines.hpp, comment //#define BENCHMARK and uncomment #define INTERACTIVE_GRAPHICS. Then, in src/setup.cpp, uncomment one of the main_setup() functions, compile and run. Depending on the setup, you might need to enable some extensions in src/defines.hpp: for example, for the "hydraulic jump" setup (text-search this in src/setup.cpp), you need to uncomment the extensions VOLUME_FORCE, EQUILIBRIUM_BOUNDARIES and SURFACE. 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!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by edisonchan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants