]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug in DataPostprocessorTensor.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 6 Aug 2020 22:59:44 +0000 (16:59 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 6 Aug 2020 22:59:44 +0000 (16:59 -0600)
Specifically, the class currently states that the components it outputs are scalars,
when the whole intent of the class is of course to output its result as a tensor
field.

source/numerics/data_postprocessor.cc

index 3fa5f63854fdf5e6fde1a73bb4ae914b114ce97b..791ef72ec3e959db7d5045d8df144bb325696108 100644 (file)
@@ -166,7 +166,7 @@ std::vector<DataComponentInterpretation::DataComponentInterpretation>
 DataPostprocessorTensor<dim>::get_data_component_interpretation() const
 {
   return std::vector<DataComponentInterpretation::DataComponentInterpretation>(
-    dim * dim, DataComponentInterpretation::component_is_scalar);
+    dim * dim, DataComponentInterpretation::component_is_part_of_tensor);
 }
 
 

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.