From: bangerth Date: Mon, 22 Jun 2009 15:08:36 +0000 (+0000) Subject: Properly initialize PETSC. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bd0a5d469f2874f3afda2fc40fb9c895a213c03;p=dealii-svn.git Properly initialize PETSC. git-svn-id: https://svn.dealii.org/trunk@18949 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-36/step-36.cc b/deal.II/examples/step-36/step-36.cc index a82f8b7d21..0185a2ff5b 100644 --- a/deal.II/examples/step-36/step-36.cc +++ b/deal.II/examples/step-36/step-36.cc @@ -230,11 +230,13 @@ void EigenvalueProblem::run () // @sect3{The main 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 (); }