17 #ifndef __deal2__data_out_stack_h
18 #define __deal2__data_out_stack_h
21 #include <deal.II/base/config.h>
22 #include <deal.II/base/data_out_base.h>
23 #include <deal.II/base/smartpointer.h>
24 #include <deal.II/lac/vector.h>
31 template <
int dim,
int spacedim>
class DoFHandler;
110 template <
int dim,
int spacedim=dim,
class DH = DoFHandler<dim,spacedim> >
221 template <
typename number>
223 const std::string &name);
253 template <
typename number>
255 const std::vector<std::string> &names);
308 <<
"The vector has size " << arg1
309 <<
" but the DoFHandler objects says there are " << arg2
310 <<
" degrees of freedom and there are " << arg3
311 <<
" active cells.");
317 <<
"Please use only the characters [a-zA-Z0-9_<>()] for" << std::endl
318 <<
"description strings since some graphics formats will only accept these."
320 <<
"The string you gave was <" << arg1
321 <<
">, the invalid character is <" << arg1[arg2]
322 <<
">." << std::endl);
328 <<
"You have to give one name per component in your "
329 <<
"data vector. The number you gave was " << arg1
330 <<
", but the number of components is " << arg2);
336 <<
"The data vector for which the first component has the name "
337 << arg1 <<
" has not been declared before.");
351 <<
"You tried to declare a component of a data vector with "
352 <<
"the name <" << arg1 <<
">, but that name is already used.");
358 <<
"The number of subdivisions per patch, " << arg1
359 <<
", is not valid.");
385 std::vector< ::DataOutBase::Patch<dim+1,dim+1> >
patches;
431 virtual const std::vector< ::DataOutBase::Patch<dim+1,dim+1> > &
get_patches ()
const;
444 DEAL_II_NAMESPACE_CLOSE
void new_parameter_value(const double parameter_value, const double parameter_step)
DeclException0(ExcNoDoFHandlerSelected)
DeclException3(ExcInvalidVectorSize, int, int, int,<< "The vector has size "<< arg1<< " but the DoFHandler objects says there are "<< arg2<< " degrees of freedom and there are "<< arg3<< " active cells.")
std::vector< ::DataOutBase::Patch< dim+1, dim+1 > > patches
SmartPointer< const DH, DataOutStack< dim, spacedim, DH > > dof_handler
void add_data_vector(const Vector< number > &vec, const std::string &name)
void declare_data_vector(const std::string &name, const VectorType vector_type)
DeclException1(ExcVectorNotDeclared, std::string,<< "The data vector for which the first component has the name "<< arg1<< " has not been declared before.")
std::vector< std::string > names
std::vector< DataVector > dof_data
virtual std::vector< std::string > get_dataset_names() const
DeclException2(ExcInvalidCharacter, std::string, size_t,<< "Please use only the characters [a-zA-Z0-9_<>()] for"<< std::endl<< "description strings since some graphics formats will only accept these."<< std::endl<< "The string you gave was <"<< arg1<< ">, the invalid character is <"<< arg1[arg2]<< ">."<< std::endl)
virtual const std::vector< ::DataOutBase::Patch< dim+1, dim+1 > > & get_patches() const
void attach_dof_handler(const DH &dof_handler)
void finish_parameter_value()
void build_patches(const unsigned int n_subdivisions=0)
std::size_t memory_consumption() const
std::size_t memory_consumption() const
std::vector< DataVector > cell_data