GLVis / glvis

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

Error reports when running meshes using MFEM example 2 with GLVis #148

Closed jhoy97 closed 3 years ago

jhoy97 commented 3 years ago

I am working on a cantilever beam problem in both 2D & 3D, and after modelling and meshing the problem on Gmsh, these error reports show: MFEM abort: Non-positive element attribute in Gmsh mesh! ... in function: void mfem::Mesh::ReadGmshMesh(std::istream&) ... in file: mesh/mesh_readers.cpp:1172 Abort (core dumped)

MFEM abort: Gmsh file : vertex index doesn't exist ... in function: void mfem::Mesh::ReadGmshMesh(std::istream&) ... in file: mesh/mesh_readers.cpp:1164

After designing the beam in Gmsh and exporting the .msh file and running it with ex2.cpp, the error codes show and no glvis window appears. Is there a particular way to export the files?

tzanio commented 3 years ago

The Gmsh boundary attributes should be positive, in particular they can't be zero.