]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make step-16 work
authorTimo Heister <timo.heister@gmail.com>
Fri, 19 Dec 2014 15:29:51 +0000 (10:29 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 19 Dec 2014 15:29:51 +0000 (10:29 -0500)
need mpi_init for debug stuff currently inside MG. We can remove this
later.

examples/step-16/step-16.cc

index a3204e4fe800ead6717285c9d71e5233c4ca81c4..4786d86ce5915c74459ee074c6f030effd8c223b 100644 (file)
@@ -659,11 +659,13 @@ namespace Step16
 // @sect3{The main() function}
 //
 // This is again the same function as in step-6:
-int main ()
+int main (int argc, char *argv[])
 {
   try
     {
       using namespace Step16;
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv,
+                                                      numbers::invalid_unsigned_int);
 
       LaplaceProblem<2> laplace_problem(1);
       laplace_problem.run ();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.