dune-grid  2.2.0
gridinfo-gmsh-main.hh File Reference

Generic main() function for printing information about a mesh read from a .msh-file. More...

Go to the source code of this file.

Detailed Description

Generic main() function for printing information about a mesh read from a .msh-file.

\author Jö Fahlke <jorrit@jorrit.de>
\date 2011

This header contains a generic main() function. To use it for your grid, write a .cc file like this:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string>
#include <dune/grid/mygrid.hh>
const std::string programName = "dune-gridinfo-gmsh-mygrid-3d";
typedef Dune::MyGrid<3> Grid;

Write an automake target for your program as usual. No special libraries are needed for you program, beyond what is needed for the grid in question.