]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Properly initialize PETSC.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 22 Jun 2009 15:08:36 +0000 (15:08 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 22 Jun 2009 15:08:36 +0000 (15:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@18949 0785d39b-7218-0410-832d-ea1e28bc413d

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

index a82f8b7d21cb21ca57df4d947b37aced8454264f..0185a2ff5b7b3358def592d2ecab5ca7e39bebb3 100644 (file)
@@ -230,11 +230,13 @@ void EigenvalueProblem<dim>::run ()
 
                                  // @sect3{The <code>main</code> function}
 
-int main () 
+int main (int argc, char **argv
 {
   try
     {
+      PetscInitialize(&argc,&argv,0,0);
       deallog.depth_console (0);
+      
       EigenvalueProblem<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.