GLVis / glvis

Lightweight OpenGL tool for accurate and flexible finite element visualization
http://glvis.org
BSD 3-Clause "New" or "Revised" License
248 stars 51 forks source link

make install is broken on 4.2? "not a member of mfem::Geometry" #252

Closed seanmajorpayne closed 1 year ago

seanmajorpayne commented 1 year ago

Ubuntu 20.04 Mfem 4.2

g++ -O3 -std=c++11 -I./mfem -DGLVIS_MULTISAMPLE=4 -DGLVIS_MS_LINEWIDTH=1.4 -DGLVIS_OGL3 -DGLVIS_USE_LOGO -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include -I/usr/include -DGLVIS_USE_LIBPNG -o lib/vssolution3d.o -c lib/vssolution3d.cpp
lib/vssolution3d.cpp: In function ‘void CutElement(mfem::Geometry::Type, const int*, const int**, int*, int*, int*)’:
lib/vssolution3d.cpp:2272:22: error: ‘PYRAMID’ is not a member of ‘mfem::Geometry’
 2272 |       case Geometry::PYRAMID:
      |                      ^~~~~~~
lib/vssolution3d.cpp: In member function ‘void VisualizationSceneSolution3d::PrepareLevelSurf()’:
lib/vssolution3d.cpp:3853:27: error: ‘PYRAMID’ is not a member of ‘mfem::Element’
 3853 |             case Element::PYRAMID:
      |                           ^~~~~~~
lib/vssolution3d.cpp:3910:37: error: ‘PYRAMID’ is not a member of ‘mfem::Geometry’
 3910 |          else if (geom == Geometry::PYRAMID)
      |                                     ^~~~~~~
make: *** [makefile:267: lib/vssolution3d.o] Error 1

Any suggestions or anything further I can provide?

seanmajorpayne commented 1 year ago

After a closer look this is due to mfem 4.2 not having the Pyramid Geometry. Pyramids are available in 4.5