From: Luca Heltai Date: Wed, 1 Sep 2010 13:26:08 +0000 (+0000) Subject: Filled step-41.cc with content of main.cc X-Git-Tag: v8.0.0~5603 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98b9af93be573fe65ae403c7abc3f0a60be7cb4b;p=dealii.git Filled step-41.cc with content of main.cc git-svn-id: https://svn.dealii.org/trunk@21821 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-41/step-41.cc b/deal.II/examples/step-41/step-41.cc index e69de29bb2..e45e1b592f 100644 --- a/deal.II/examples/step-41/step-41.cc +++ b/deal.II/examples/step-41/step-41.cc @@ -0,0 +1,37 @@ +#include +#include "../include/base.h" + +int main () +{ + try + { + Base problem; + problem.run (); + } + catch (std::exception &exc) + { + std::cerr << std::endl << std::endl + << "----------------------------------------------------" + << std::endl; + std::cerr << "Exception on processing: " << std::endl + << exc.what() << std::endl + << "Aborting!" << std::endl + << "----------------------------------------------------" + << std::endl; + + return 1; + } + catch (...) + { + std::cerr << std::endl << std::endl + << "----------------------------------------------------" + << std::endl; + std::cerr << "Unknown exception!" << std::endl + << "Aborting!" << std::endl + << "----------------------------------------------------" + << std::endl; + return 1; + } + + return 0; +}