From 0ce705e44b138ab44e87d0543c986b324c9e2cd0 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 15 Feb 2020 00:26:35 -0500 Subject: [PATCH] find other places to AssertThrow for missing dependencies --- source/base/function_parser.cc | 8 ++++---- source/base/tensor_function_parser.cc | 8 ++++---- source/grid/grid_in.cc | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/source/base/function_parser.cc b/source/base/function_parser.cc index 924c7dd0bf..50a231323e 100644 --- a/source/base/function_parser.cc +++ b/source/base/function_parser.cc @@ -339,7 +339,7 @@ FunctionParser::initialize(const std::string &, const std::map &, const bool) { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); } template @@ -349,7 +349,7 @@ FunctionParser::initialize(const std::string &, const std::map &, const bool) { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); } @@ -358,7 +358,7 @@ template double FunctionParser::value(const Point &, unsigned int) const { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); return 0.; } @@ -367,7 +367,7 @@ template void FunctionParser::vector_value(const Point &, Vector &) const { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); } diff --git a/source/base/tensor_function_parser.cc b/source/base/tensor_function_parser.cc index f77927125d..8bcde38b3f 100644 --- a/source/base/tensor_function_parser.cc +++ b/source/base/tensor_function_parser.cc @@ -354,7 +354,7 @@ TensorFunctionParser::initialize( const std::map &, const bool) { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); } template @@ -365,7 +365,7 @@ TensorFunctionParser::initialize( const std::map &, const bool) { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); } @@ -374,7 +374,7 @@ template Tensor TensorFunctionParser::value(const Point &) const { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); return Tensor(); } @@ -386,7 +386,7 @@ TensorFunctionParser::value_list( const std::vector> &, std::vector> &) const { - Assert(false, ExcNeedsFunctionparser()); + AssertThrow(false, ExcNeedsFunctionparser()); } diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index 547a407077..a046132edf 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -3122,7 +3122,7 @@ GridIn::read_assimp(const std::string &filename, (void)remove_duplicates; (void)tol; (void)ignore_unsupported_types; - Assert(false, ExcNeedsAssimp()); + AssertThrow(false, ExcNeedsAssimp()); #endif } -- 2.39.5