Gmsh is a 3D finite element grid generator with a build-in CAD engine and post-processor. Its design goal is to provide a fast, light and user-friendly meshing tool with parametric input and advanced visualization capabilities. Gmsh is built around four modules: geometry, mesh, solver and post-processing. The specification of any input to these modules is done either interactively using the graphical user interface or in ASCII text files using Gmsh's own scripting language .
- Install cmake. Optionally install also ccmake.
- Install the following programs, libraries and development versions thereof:
Keep in mind to install dependencies of these packages, too.
- Download and extract sources of mmg3d .
- Run "(c)cmake.".
- Make sure that the INCLUDE_SCOTCH variable points to the scotch headers (e.g. /usr/include/scotch).
- Make sure that a library is generated (COMPIL_SHARED_LIBRARY or COMPIL_STATIC_LIBRARY).
- Run make.
- Copy the library to the folder where libraries are stored (e.g. /usr/local/lib).
- Run ldconfig.
- Download and extract sources of gmsh.
- Create a folder build in the folder gmsh-x.x.x-source.
- Go to this folder.
- Run "(c)cmake..".
- Set ENABLE_MPI to ON.
- Add to the PETSC_INC variable the path to the MPI includes (e.g. /usr/include/petsc;/usr/include/mpi).
- Set the variable MMG3D_INC to the source path of mmg3d (e.g. /usr/local/src/mmg3d4/build/sources).
- Set the variable MMG3D_LIB to the path of the compiled library (e.g. /usr/local/src/mmg3d4/build/libmmg3dlib4.0.so).
- Run make and make install.