(const FEValuesBase<DoFHandlerType::dimension,DoFHandlerType::space_dimension> &fe_patch_values,
std::vector<std::vector< Tensor<2,DoFHandlerType::space_dimension> > > &patch_hessians_system) const = 0;
+ /**
+ * Return whether the data represented by (a derived class of) this object
+ * represents a complex-valued (as opposed to real-valued) information.
+ */
+ virtual bool is_complex_valued () const = 0;
+
/**
* Clear all references to the vectors.
*/
#include <deal.II/base/std_cxx14/memory.h>
#include <deal.II/base/utilities.h>
#include <deal.II/base/work_stream.h>
+#include <deal.II/base/numbers.h>
#include <deal.II/dofs/dof_accessor.h>
#include <deal.II/dofs/dof_handler.h>
(const FEValuesBase<DoFHandlerType::dimension,DoFHandlerType::space_dimension> &fe_patch_values,
std::vector<std::vector< Tensor<2,DoFHandlerType::space_dimension> > > &patch_hessians_system) const;
+ /**
+ * Return whether the data represented by (a derived class of) this object
+ * represents a complex-valued (as opposed to real-valued) information.
+ */
+ virtual bool is_complex_valued () const;
+
/**
* Clear all references to the vectors.
*/
+ template <typename DoFHandlerType, typename VectorType>
+ bool
+ DataEntry<DoFHandlerType,VectorType>::is_complex_valued() const
+ {
+ return numbers::NumberTraits<typename VectorType::value_type>::is_complex;
+ }
+
+
+
template <typename DoFHandlerType, typename VectorType>
std::size_t
DataEntry<DoFHandlerType,VectorType>::memory_consumption () const