diff --git a/dune/xt/functions/base/function-as-grid-function.hh b/dune/xt/functions/base/function-as-grid-function.hh index 3f848f7e8cc8098d6a2a29d2d70a648941495217..e8085ca7644ebdaefee656479473568c4396ff4c 100644 --- a/dune/xt/functions/base/function-as-grid-function.hh +++ b/dune/xt/functions/base/function-as-grid-function.hh @@ -103,7 +103,7 @@ private: public: int order(const Common::Parameter& param = {}) const override final { - DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, ""); + DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, function_.name()); return function_.order(param); } @@ -112,7 +112,7 @@ private: RangeReturnType evaluate(const DomainType& point_in_reference_element, const Common::Parameter& param = {}) const override final { - DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, ""); + DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, function_.name()); this->assert_inside_reference_element(point_in_reference_element); return function_.evaluate(geometry_->global(point_in_reference_element), param); } @@ -122,7 +122,7 @@ private: DerivativeRangeReturnType jacobian(const DomainType& point_in_reference_element, const Common::Parameter& param = {}) const override final { - DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, ""); + DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, function_.name()); this->assert_inside_reference_element(point_in_reference_element); return function_.jacobian(geometry_->global(point_in_reference_element), param); } @@ -133,7 +133,7 @@ private: const DomainType& point_in_reference_element, const Common::Parameter& param = {}) const override final { - DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, ""); + DUNE_THROW_IF(!(geometry_), Exceptions::not_bound_to_an_element_yet, function_.name()); this->assert_inside_reference_element(point_in_reference_element); return function_.derivative(alpha, geometry_->global(point_in_reference_element), param); } diff --git a/dune/xt/functions/base/reinterpret.hh b/dune/xt/functions/base/reinterpret.hh index 8dae257d31d881e2bfd6300b325b24b85bcf6eed..8493193151acaf2e6e4afccb5d595b2f8f60351b 100644 --- a/dune/xt/functions/base/reinterpret.hh +++ b/dune/xt/functions/base/reinterpret.hh @@ -146,7 +146,7 @@ private: DUNE_THROW_IF(!source_element_which_contains_complete_target_element_ && !source_element_which_contains_some_point_of_target_element_, Exceptions::not_bound_to_an_element_yet, - ""); + source_.name()); return local_source_->order(param); }