Commit 777e7fc1 authored by Robert Klöfkorn's avatar Robert Klöfkorn

use mpi helper.

[[Imported from SVN: r163]]
parent 65edfb95
......@@ -8,6 +8,8 @@
// Dune includes
#include "config.h" // file constructed by ./configure script
#include <dune/grid/sgrid.hh> // load sgrid definition
#include <dune/common/mpihelper.hh> // include mpi helper class
// example for a generic algorithm that traverses
// the entities of a given mesh in various ways
......@@ -94,8 +96,11 @@ void traversal (G& grid)
} /*@\label{tc:tra1}@*/
int main()
int main(int argc, char **argv)
// initialize MPI, finalize is done automatically on exit
// start try/catch block to get error messages from dune
try {
// make a grid
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment