From: Wolfgang Bangerth Date: Sun, 13 Feb 2011 22:31:07 +0000 (+0000) Subject: Abort the program if the input file could not be read. X-Git-Tag: v8.0.0~4348 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a115cdca21a6dd7e68cf5056ea6acef7a4d3f022;p=dealii.git Abort the program if the input file could not be read. git-svn-id: https://svn.dealii.org/trunk@23350 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 0aa794f39b..b971f40ac2 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -3474,7 +3474,9 @@ void BoussinesqFlowProblem::run (const std::string parameter_filename) std::exit (1); } - prm.read_input (parameter_file); + const bool success = prm.read_input (parameter_file); + AssertThrow (success, ExcMessage ("Invalid input parameter file.")); + parameters.parse_parameters (prm); }