From: kronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Wed, 7 Jan 2009 08:54:52 +0000 (+0000)
Subject: Need to set up MPI_InitFinalize for Trilinos programs to make them work for both... 
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=595f6783dc752f0338a0326485864ba2798fbf29;p=dealii-svn.git

Need to set up MPI_InitFinalize for Trilinos programs to make them work for both serial and MPI compilers.

git-svn-id: https://svn.dealii.org/trunk@18113 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/deal.II/examples/step-33/step-33.cc b/deal.II/examples/step-33/step-33.cc
index 3f8be06826..560d4ff4ed 100644
--- a/deal.II/examples/step-33/step-33.cc
+++ b/deal.II/examples/step-33/step-33.cc
@@ -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 ();
     }