8 #ifndef FIELD_ELEMENTWISE_HH_
9 #define FIELD_ELEMENTWISE_HH_
36 template <
int spacedim,
class Value>
48 FieldElementwise(
double *data_ptr,
unsigned int n_components,
unsigned int size );
79 virtual void set_mesh(
const Mesh *mesh,
bool boundary_domain);
static Input::Type::Record get_input_type(Input::Type::AbstractRecord &a_type, const typename Value::ElementInputType *eit)
virtual ~FieldElementwise()
virtual void init_from_input(const Input::Record &rec)
virtual bool set_time(double time)
void set_data_row(unsigned int boundary_idx, typename Value::return_type &value)
double * data_
Raw buffer of n_entities rows each containing Value::size() doubles.
unsigned int data_size_
Allocated size of data_ buffer.
FieldAlgorithmBase< spacedim, Value >::Point Point
FieldElementwise(unsigned int n_comp=0)
Space< spacedim >::Point Point
static Input::Type::Record input_type
Implementation.
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)
unsigned int n_components_
Size of Value.
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)
FieldElementwise(vector< double > &data, unsigned int n_components)
unsigned int n_entities_
Number of rows in data_ buffer.
virtual void set_mesh(const Mesh *mesh, bool boundary_domain)
unsigned int n_comp() const