From a115cdca21a6dd7e68cf5056ea6acef7a4d3f022 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 13 Feb 2011 22:31:07 +0000 Subject: [PATCH] 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 --- deal.II/examples/step-32/step-32.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5