From d37e30a99ecebf7ff27de1b7dcf1bbbf11fde225 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 3 Apr 2020 22:02:43 -0600 Subject: [PATCH] Add a missing assertion. --- source/base/data_out_base.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 57c38a64a2..a5bf5d30ae 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -5070,6 +5070,10 @@ namespace DataOutBase std::vector data_set_written(n_data_sets, false); for (const auto &nonscalar_data_range : nonscalar_data_ranges) { + AssertThrow(std::get<3>(nonscalar_data_range) != + DataComponentInterpretation::component_is_part_of_tensor, + ExcNotImplemented()); + AssertThrow(std::get<1>(nonscalar_data_range) >= std::get<0>(nonscalar_data_range), ExcLowerRange(std::get<1>(nonscalar_data_range), -- 2.39.5