}
catch (const std::exception &exc)
{
- deallog << exc.what() << std::endl;
+ std::string error = exc.what();
+ auto start = error.find("The violated condition was:");
+ if (start != std::string::npos)
+ deallog << error.substr(start) << std::endl;
}
// check set status
}
catch (const std::exception &exc)
{
- deallog << exc.what() << std::endl;
+ std::string error = exc.what();
+ auto start = error.find("The violated condition was:");
+ if (start != std::string::npos)
+ deallog << error.substr(start) << std::endl;
}
}
DEAL::
DEAL::successful
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::set(const std::string &, const std::string &)
-The violated condition was:
+DEAL::The violated condition was:
false
Additional information:
You can't ask for entry <Precison> you have not yet declared.
--------------------------------------------------------
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::assert_that_entries_have_been_set() const
-The violated condition was:
+DEAL::The violated condition was:
entries_wrongly_not_set.empty()
Additional information:
Not all entries of the parameter handler that were declared with
+++ /dev/null
-
-DEAL::
-DEAL::successful
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::set(const std::string&, const std::string&)
-The violated condition was:
- false
-Additional information:
- You can't ask for entry <Precison> you have not yet declared.
---------------------------------------------------------
-
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::assert_that_entries_have_been_set() const
-The violated condition was:
- entries_wrongly_not_set.empty()
-Additional information:
- Not all entries of the parameter handler that were declared with
- `has_to_be_set = true` have been set. The following parameters
-
- General.Precision
- General.dim
-
- have not been set. A possible reason might be that you did not add
- these parameter to the input file or that their spelling is not
- correct.
---------------------------------------------------------
-
+++ /dev/null
-
-DEAL::
-DEAL::successful
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::set(const std::string &, const std::string &)
-The violated condition was:
- false
-Additional information:
- You can't ask for entry <Precison> you have not yet declared.
---------------------------------------------------------
-
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::assert_that_entries_have_been_set() const
-The violated condition was:
- entries_wrongly_not_set.empty()
-Additional information:
- Not all entries of the parameter handler that were declared with
- `has_to_be_set = true` have been set. The following parameters
-
- General.Precision
- General.dim
-
- have not been set. A possible reason might be that you did not add
- these parameter to the input file or that their spelling is not
- correct.
---------------------------------------------------------
-
+++ /dev/null
-
-DEAL::
-DEAL::successful
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::set(const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &)
-The violated condition was:
- false
-Additional information:
- You can't ask for entry <Precison> you have not yet declared.
---------------------------------------------------------
-
-DEAL::
---------------------------------------------------------
-An error occurred in file <parameter_handler.cc> in function
- void dealii::ParameterHandler::assert_that_entries_have_been_set() const
-The violated condition was:
- entries_wrongly_not_set.empty()
-Additional information:
- Not all entries of the parameter handler that were declared with
- `has_to_be_set = true` have been set. The following parameters
-
- General.Precision
- General.dim
-
- have not been set. A possible reason might be that you did not add
- these parameter to the input file or that their spelling is not
- correct.
---------------------------------------------------------
-