16 #ifndef dealii_mesh_worker_vector_selector_h 17 #define dealii_mesh_worker_vector_selector_h 64 add(
const std::string &name,
65 const bool values =
true,
66 const bool gradients =
false,
67 const bool hessians =
false);
154 template <
class StreamType,
typename DATA>
161 template <
class StreamType>
163 print(StreamType &s)
const;
195 template <
int dim,
int spacedim = dim,
typename Number =
double>
263 fill(std::vector<std::vector<std::vector<Number>>> &values,
269 const std::vector<types::global_dof_index> &index,
270 const unsigned int component,
271 const unsigned int n_comp,
272 const unsigned int start,
273 const unsigned int size)
const;
282 mg_fill(std::vector<std::vector<std::vector<Number>>> &values,
288 const unsigned int level,
289 const std::vector<types::global_dof_index> &index,
290 const unsigned int component,
291 const unsigned int n_comp,
292 const unsigned int start,
293 const unsigned int size)
const;
308 template <
typename VectorType,
int dim,
int spacedim = dim>
310 :
public VectorDataBase<dim, spacedim, typename VectorType::value_type>
340 fill(std::vector<std::vector<std::vector<typename VectorType::value_type>>>
342 std::vector<std::vector<
345 std::vector<std::vector<
349 const std::vector<types::global_dof_index> &index,
350 const unsigned int component,
351 const unsigned int n_comp,
352 const unsigned int start,
353 const unsigned int size)
const override;
357 std::vector<std::vector<std::vector<typename VectorType::value_type>>>
359 std::vector<std::vector<
362 std::vector<std::vector<
366 const unsigned int level,
367 const std::vector<types::global_dof_index> &index,
368 const unsigned int component,
369 const unsigned int n_comp,
370 const unsigned int start,
371 const unsigned int size)
const override;
389 template <
typename VectorType,
int dim,
int spacedim = dim>
426 const bool gradients,
528 template <
class StreamType>
533 <<
" hessians: " <<
n_hessians() << std::endl;
537 template <
class StreamType,
typename DATA>
542 for (
unsigned int i = 0; i <
n_values(); ++i)
544 s << std::endl <<
"gradients:";
547 s << std::endl <<
"hessians: ";
548 for (
unsigned int i = 0; i <
n_hessians(); ++i)
557 return sizeof(*this);
NamedSelection gradient_selection
bool has_gradients() const
void add(const std::string &name)
void add(const std::string &name, const bool values=true, const bool gradients=false, const bool hessians=false)
unsigned int n_values() const
void initialize(const AnyData &data)
#define DEAL_II_NAMESPACE_CLOSE
std::size_t memory_consumption() const
unsigned int hessian_index(const unsigned int i) const
unsigned int gradient_index(const unsigned int i) const
NamedSelection hessian_selection
bool has_hessians() const
unsigned int n_gradients() const
#define DEAL_II_NAMESPACE_OPEN
unsigned int size() const
unsigned int value_index(const unsigned int i) const
unsigned int n_hessians() const
void initialize(const AnyData &)
void print(StreamType &s, const AnyData &v) const
const std::string & name(const unsigned int i) const
Name of object at index.
NamedSelection value_selection