Skip to content
Snippets Groups Projects
Commit f264dbbc authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Nuke generated c++-file

parent 852b54e5
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
AC_PREREQ(2.50) AC_PREREQ(2.50)
DUNE_AC_INIT # gets module version from dune.module file DUNE_AC_INIT # gets module version from dune.module file
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/dune_tectonic.cc]) AC_CONFIG_SRCDIR([src/test-gradient-method.cc])
AM_CONFIG_HEADER([config.h]) AM_CONFIG_HEADER([config.h])
......
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iostream>
#include "dune/common/mpihelper.hh" // An initializer of MPI
#include "dune/common/exceptions.hh" // We use exceptions
int main(int argc, char** argv) {
try {
// Maybe initialize Mpi
Dune::MPIHelper& helper = Dune::MPIHelper::instance(argc, argv);
std::cout << "Hello World! This is dune-tectonic." << std::endl;
if (Dune::MPIHelper::isFake)
std::cout << "This is a sequential program." << std::endl;
else
std::cout << "I am rank " << helper.rank() << " of " << helper.size()
<< " processes!" << std::endl;
return 0;
}
catch (Dune::Exception& e) {
std::cerr << "Dune reported error: " << e << std::endl;
}
catch (...) {
std::cerr << "Unknown exception thrown!" << std::endl;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment