ProjectPhysX / FluidX3D

The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs via OpenCL. Free for non-commercial use.
https://youtube.com/@ProjectPhysX
Other
3.77k stars 300 forks source link

'class LBM' has no member named 'graphics' #129

Closed andrewjosephlehmann closed 9 months ago

andrewjosephlehmann commented 9 months ago

Hi, I am trying to compile an example provided in setup.cpp. Despite my best efforts, I continue to receive the same error stating: .../src/setup.cpp:520:13: error: ‘class LBM’ has no member named ‘graphics’ 520 | lbm.graphics.visualization_modes = VIS_FLAG_LATTICE|VIS_FLAG_SURFACE;

Build finished with error(s).

For context, I am on a Linux machine under X11.

ProjectPhysX commented 9 months ago

Hi @andrewjosephlehmann,

uncomment INTERACTIVE_GRAPHICS and the other settings instructed in the line where your main_setup() function begins. Then switch to this line to compile with X11. And don't forget to comment out BENCHMARK.

Kind regards, Moritz