Skip to content

Commit

Permalink
Fix DataPostprocessorTensor: Don't add suffixes to the lone tensor va…
Browse files Browse the repository at this point in the history
…riable.
  • Loading branch information
bangerth committed Aug 7, 2020
1 parent e3a3ec7 commit f5c7858
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions source/numerics/data_postprocessor.cc
Expand Up @@ -148,15 +148,7 @@ template <int dim>
std::vector<std::string>
DataPostprocessorTensor<dim>::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<std::string> 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<std::string>(dim * dim, name);
}


Expand Down

0 comments on commit f5c7858

Please sign in to comment.