ASPECT
named_additional_outputs.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2014-2021 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 
16 #ifndef _aspect_postprocess_visualization_named_additional_outputs_h
17 #define _aspect_postprocess_visualization_named_additional_outputs_h
18 
21 
23 
24 
25 namespace aspect
26 {
27  namespace Postprocess
28  {
29  namespace VisualizationPostprocessors
30  {
41  template <int dim>
43  : public DataPostprocessor<dim>,
44  public SimulatorAccess<dim>,
45  public Interface<dim>
46  {
47  public:
49 
50  void
51  initialize () override;
52 
53  std::vector<std::string>
54  get_names () const override;
55 
56  std::vector<DataComponentInterpretation::DataComponentInterpretation>
57  get_data_component_interpretation () const override;
58 
60  get_needed_update_flags () const override;
61 
62  void
64  std::vector<Vector<double>> &computed_quantities) const override;
65 
66  private:
67  std::vector<std::string> property_names;
68  };
69  }
70  }
71 }
72 
73 #endif
std::vector< DataComponentInterpretation::DataComponentInterpretation > get_data_component_interpretation() const override
UpdateFlags
void evaluate_vector_field(const DataPostprocessorInputs::Vector< dim > &input_data, std::vector< Vector< double >> &computed_quantities) const override