4#ifndef lethe_output_struct_h
5#define lethe_output_struct_h
7#include <deal.II/base/table_handler.h>
9#include <deal.II/numerics/data_postprocessor.h>
20template <
int dim,
typename VectorType>
52template <
int dim,
typename VectorType>
68 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
78 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
113template <
int dim,
typename VectorType>
114using OutputStruct = std::variant<OutputStructPostprocessor<dim, VectorType>,
std::variant< OutputStructPostprocessor< dim, VectorType >, OutputStructSolution< dim, VectorType >, OutputStructCellVector > OutputStruct
Variant handler of the three output structs (OutputStructPostprocessor, OutputStructSolution and Outp...
Struct containing information about the solution output. It is used to pass all the information requi...
const Vector< float > solution
OutputStructCellVector(const Vector< float > &solution, const std::string &solution_name)
Constructor for when data is not related to a data_postprocessor.
const std::string solution_name
const VectorType & solution
OutputStructPostprocessor(const DoFHandler< dim > &dof_handler, const VectorType &solution, const std::shared_ptr< DataPostprocessor< dim > > &data_postprocessor)
Constructor for when data is in data_postprocessor.
const std::shared_ptr< DataPostprocessor< dim > > data_postprocessor
const DoFHandler< dim > & dof_handler
Struct containing information about the solution output. It is used to pass all the information requi...
const DoFHandler< dim > & dof_handler
const std::vector< std::string > solution_names
OutputStructSolution(const DoFHandler< dim > &dof_handler, const VectorType &solution, const std::vector< std::string > &solution_names, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation)
Constructor for when data is not related to a data_postprocessor.
const VectorType & solution
const std::vector< DataComponentInterpretation::DataComponentInterpretation > data_component_interpretation
const std::string table_filename
Name of the file associated with the TableHandler for input/output.
OutputStructTableHandler(TableHandler &table, const std::string &table_filename)
Constructor.
TableHandler & table
Reference to the TableHandler object to be serialized/deserialized.
GlobalVectorType VectorType