16 #ifndef dealii__data_out_stack_h 17 #define dealii__data_out_stack_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/data_out_base.h> 22 #include <deal.II/base/smartpointer.h> 23 #include <deal.II/lac/vector.h> 24 #include <deal.II/numerics/data_out_dof_data.h> 29 DEAL_II_NAMESPACE_OPEN
31 template <
int dim,
int spacedim>
class DoFHandler;
108 template <
int dim,
int spacedim=dim,
typename DoFHandlerType = DoFHandler<dim,spacedim> >
196 template <
typename number>
198 const std::string &name);
218 template <
typename number>
220 const std::vector<std::string> &names);
263 <<
"The data vector for which the first component has the name " 264 << arg1 <<
" has not been added before.");
269 "You cannot start a new time/parameter step before calling " 270 "finish_parameter_value() on the previous step.");
275 "You cannot declare additional vectors after already calling " 276 "build_patches(). All data vectors need to be declared " 277 "before you call this function the first time.");
283 <<
"You tried to declare a component of a data vector with " 284 <<
"the name <" << arg1 <<
">, but that name is already used.");
307 std::vector< ::DataOutBase::Patch<dim+1,dim+1> >
patches;
347 virtual const std::vector< ::DataOutBase::Patch<dim+1,dim+1> > &
get_patches ()
const;
358 DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNameAlreadyUsed(std::string arg1)
std::vector< ::DataOutBase::Patch< dim+1, dim+1 > > patches
std::size_t memory_consumption() const
SmartPointer< const DoFHandlerType, DataOutStack< dim, spacedim, DoFHandlerType > > dof_handler
std::vector< DataVector > cell_data
static ::ExceptionBase & ExcDataAlreadyAdded()
void attach_dof_handler(const DoFHandlerType &dof_handler)
std::vector< DataVector > dof_data
static ::ExceptionBase & ExcDataNotCleared()
std::size_t memory_consumption() const
std::vector< std::string > names
#define DeclException1(Exception1, type1, outsequence)
void declare_data_vector(const std::string &name, const VectorType vector_type)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcVectorNotDeclared(std::string arg1)
virtual std::vector< std::string > get_dataset_names() const
void build_patches(const unsigned int n_subdivisions=0)
virtual const std::vector< ::DataOutBase::Patch< dim+1, dim+1 > > & get_patches() const
void finish_parameter_value()
void new_parameter_value(const double parameter_value, const double parameter_step)
void add_data_vector(const Vector< number > &vec, const std::string &name)