]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix step-41 when using mpi
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Oct 2011 16:36:50 +0000 (16:36 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Oct 2011 16:36:50 +0000 (16:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@24645 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-41/step-41.cc

index 885346b30e73c0014f389fefa975ca531bc74f0b..34f366248be6e71e8c4c1038c92e1b18ff4559e6 100644 (file)
@@ -941,9 +941,11 @@ void Step4<dim>::run ()
                                  // written. By changing it you can get more
                                  // information about the innards of the
                                  // library.
-int main (
+int main (int argc, char *argv[])
 {
   deallog.depth_console (0);
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
+
   {
     Step4<2> laplace_problem_2d;
     laplace_problem_2d.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.