]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a missing assertion. 9814/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 4 Apr 2020 04:02:43 +0000 (22:02 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 4 Apr 2020 04:02:43 +0000 (22:02 -0600)
source/base/data_out_base.cc

index 57c38a64a22f0c8f616790cf7301ab9e631551b2..a5bf5d30ae8f847c16f977ab8a27c2c979b16abb 100644 (file)
@@ -5070,6 +5070,10 @@ namespace DataOutBase
     std::vector<bool> 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),

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.