From: Wolfgang Bangerth Date: Fri, 7 Aug 2020 01:29:28 +0000 (-0600) Subject: Fix DataPostprocessorTensor: Don't add suffixes to the lone tensor variable. X-Git-Tag: v9.3.0-rc1~1203^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5c785809df2a06fcdff12324f4003fb85125d84;p=dealii.git Fix DataPostprocessorTensor: Don't add suffixes to the lone tensor variable. --- 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); }