]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Need to set up MPI_InitFinalize for Trilinos programs to make them work for both...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 7 Jan 2009 08:54:52 +0000 (08:54 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 7 Jan 2009 08:54:52 +0000 (08:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@18113 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 3f8be068269bd0c923612f3903d045744147348b..560d4ff4edf0328a659345c9b6593480f3d4ccb3 100644 (file)
@@ -3105,9 +3105,9 @@ void ConservationLaw<dim>::run ()
                                 // The following ``main'' function is
                                 // similar to previous examples and
                                 // need not to be commented on. Note
-                                // that the program aborts if no
-                                // input file name is given on the
-                                // command line.
+                                // that the program aborts if no input
+                                // file name is given on the command
+                                // line.
 int main (int argc, char *argv[])
 {
   deallog.depth_console(0);
@@ -3119,6 +3119,7 @@ int main (int argc, char *argv[])
 
   try
     {
+      Utilities::System::MPI_InitFinalize mpi_initialization (argc, argv);
       ConservationLaw<2> cons (argv[1]);
       cons.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.