From f5c785809df2a06fcdff12324f4003fb85125d84 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 6 Aug 2020 19:29:28 -0600 Subject: [PATCH] Fix DataPostprocessorTensor: Don't add suffixes to the lone tensor variable. --- source/numerics/data_postprocessor.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/source/numerics/data_postprocessor.cc b/source/numerics/data_postprocessor.cc index 791ef72ec3..565d8d649f 100644 --- a/source/numerics/data_postprocessor.cc +++ b/source/numerics/data_postprocessor.cc @@ -148,15 +148,7 @@ template std::vector DataPostprocessorTensor::get_names() const { - static_assert(dim <= 3, - "The following variable needs to be expanded for dim>3"); - static const char suffixes[] = {'x', 'y', 'z'}; - - std::vector names; - for (unsigned int d = 0; d < dim; ++d) - for (unsigned int e = 0; e < dim; ++e) - names.push_back(name + '_' + suffixes[d] + suffixes[e]); - return names; + return std::vector(dim * dim, name); } -- 2.39.5