Dune Core Modules (2.5.0)

gridinfo-gmsh-main.hh File Reference

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

#include <cstddef>
#include <cstdlib>
#include <exception>
#include <iostream>
#include <memory>
#include <ostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include <dune/common/classname.hh>
#include <dune/common/exceptions.hh>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/grid/io/file/gmshreader.hh>
#include <dune/grid/utility/gridinfo.hh>

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 jorri.nosp@m.t@jo.nosp@m.rrit..nosp@m.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;
Generic main() function for printing information about a mesh read from a .msh-file.

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.

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)