22 #include "tensor_impl.hpp"
25 Ope_eq(zesys, target->get_dom(), 1), bound(bb), pos_cf (pp), value(vv) {
36 cerr <<
"Ope_int only defined with respect for a tensor" << endl ;
41 cerr <<
"Ope_mode only defined with respect to a scalar (yet)" << endl ;
54 if (target.
der_t!=0x0) {
virtual double val_boundary(int bound, const Val_domain &so, const Index &ind) const
Computes the value of a field at a boundary.
Class that gives the position inside a multi-dimensional Array.
Abstract class that describes the various operators that can appear in the equations.
MMPtr_array< Ope_eq > parts
Pointers of the various parts of the current operator.
int dom
Index of the Domain where the operator is defined.
double value
The result is the coefficient minus value.
Ope_mode(const System_of_eqs *syst, int bb, const Index &ind, double val, Ope_eq *so)
Constructor.
Term_eq action() const override
Computes the action of the current Ope_eq using its various parts.
Index pos_cf
The desired coefficient.
int bound
The boundary where the coefficients are read.
~Ope_mode() override
Destructor.
Class used to describe and solve a system of equations.
int get_n_comp() const
Returns the number of stored components.
virtual Array< int > indices(int pos) const
Gives the values of the indices corresponding to a location in the array used for storage of the comp...
This class is intended to describe the manage objects appearing in the equations.
Tensor * der_t
Pointer on the variation, if the Term_eq is a Tensor.
const int type_data
Flag describing the type of data :
Tensor * val_t
Pointer on the value, if the Term_eq is a Tensor.
Class for storing the basis of decompositions of a field and its values on both the configuration and...
bool check_if_zero() const
Check whether the logical state is zero or not.
const Domain * get_domain() const