22 #include "tensor_impl.hpp"
25 Ope_eq(zesys, target->get_dom(), 1), 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 ;
55 if (target.
der_t!=0x0) {
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.
Index pos_cf
The desired coefficient.
~Ope_val_mode() override
Destructor.
Ope_val_mode(const System_of_eqs *syst, 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.
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.
void coef() const
Computes the coefficients.
Array< double > get_coef() const