]> https://gitweb.dealii.org/ - dealii.git/commitdiff
ParameterHandler/ParameterAcceptor: do not use PathSearch::ExcFileNotFound
authorMatthias Maier <tamiko@43-1.org>
Wed, 17 Jul 2024 13:19:34 +0000 (08:19 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 17 Jul 2024 13:22:58 +0000 (08:22 -0500)
source/base/parameter_acceptor.cc
source/base/parameter_handler.cc

index c00a0d91551146323844b06bf9673087531b7f7a..371134a25be4eca245f9536d751eae52614e6deb 100644 (file)
@@ -91,7 +91,7 @@ ParameterAcceptor::initialize(
         {
           prm.parse_input(filename);
         }
-      catch (const dealii::PathSearch::ExcFileNotFound &)
+      catch (const dealii::ExcFileNotOpen &)
         {
           prm.print_parameters(filename, output_style_for_filename);
           AssertThrow(false,
index a5a6317bef034846ed820558e2172bb652460288..189910f9fe086a5a3c2f0818f62bbf412b0f2066 100644 (file)
@@ -569,7 +569,7 @@ ParameterHandler::parse_input(const std::string &filename,
                               const bool assert_mandatory_entries_are_found)
 {
   std::ifstream is(filename);
-  AssertThrow(is, PathSearch::ExcFileNotFound(filename, "ParameterHandler"));
+  AssertThrow(is, ExcFileNotOpen(filename));
 
   std::string file_ending = filename.substr(filename.find_last_of('.') + 1);
   boost::algorithm::to_lower(file_ending);

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.