8 #ifndef FIELD_CONSTANT_IMPL_HH_
9 #define FIELD_CONSTANT_IMPL_HH_
19 namespace it = Input::Type;
21 template <
int spacedim,
class Value>
26 template <
int spacedim,
class Value>
35 "Value of the constant field.\n"
36 "For vector values, you can use scalar value to enter constant vector.\n"
37 "For square NxN-matrix values, you can use:\n"
38 "* vector of size N to enter diagonal matrix\n"
39 "* vector of size (N+1)*N/2 to enter symmetric matrix (upper triangle, row by row)\n"
40 "* scalar to enter multiple of the unit matrix." )
48 template <
int spacedim,
class Value>
54 template <
int spacedim,
class Value>
63 template <
int spacedim,
class Value>
65 this->value_.init_from_input( rec.
val<
typename Value::AccessType>(
"value") );
73 template <
int spacedim,
class Value>
76 return this->r_value_;
84 template <
int spacedim,
class Value>
89 for(
unsigned int i=0; i< point_list.size(); i++)
90 value_list[i]=this->r_value_;
95 template <
int spacedim,
class Value>
FieldConstant< spacedim, Value > & set_value(const typename Value::return_type &val)
virtual void init_from_input(const Input::Record &rec)
static Input::Type::Record get_input_type(Input::Type::AbstractRecord &a_type, const typename Value::ElementInputType *eit)
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)
#define ASSERT_EQUAL(a, b)
FieldConstant(unsigned int n_comp=0)
Space< spacedim >::Point Point