22 template <
int spacedim,
class Value>
26 inner_dividend_(inner_dividend),
27 inner_divisor_(inner_divisor)
34 template <
int spacedim,
class Value>
40 for(
unsigned int row=0; row < this->
value_.n_rows(); row++)
41 for(
unsigned int col=0; col < this->
value_.n_cols(); col++) {
42 this->
value_(row,col) /= div_val;
53 template <
int spacedim,
class Value>
62 for(
unsigned int i=0; i< point_list.
size(); i++) {
64 Value envelope(value_list[i]);
66 for(
unsigned int row=0; row < this->
value_.n_rows(); row++)
67 for(
unsigned int col=0; col < this->
value_.n_cols(); col++)
68 envelope(row,col) /= div_val;
74 template <
int spacedim,
class Value>
84 template <
int spacedim,
class Value>
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)
unsigned int size() const
bool set_time(const TimeStep &time) override
FieldCommon & flags_add(FieldFlag::Flags::Mask mask)
Class template representing a field with values dependent on: point, element, and region...
FieldDivide(std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > inner_dividend, Field< 3, FieldValue< 3 >::Scalar > inner_divisor, unsigned int n_comp=0)
#define INSTANCE_ALL(field)
bool set_time(const TimeStep &time, LimitSide limit_side) override
ArmaVec< Type, nr > vec(uint mat_index) const
Value::return_type r_value_
Field< 3, FieldValue< 3 >::Scalar > inner_divisor_
Field to which we add linear potential.
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm) const
Space< spacedim >::Point Point
virtual void value_list(const Armor::array &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)
Value value_
Last value, prevents passing large values (vectors) by value.
#define ASSERT_PTR(ptr)
Definition of assert macro checking non-null pointer (PTR)
std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > inner_dividend_
Field to which we add linear potential.
Representation of one time step..
#define ASSERT_EQ(a, b)
Definition of comparative assert macro (EQual)
static constexpr Mask declare_input
The field can be set from input. The key in input field descriptor is declared. (default on) ...