22 #include "tensor_impl.hpp"
36 cerr <<
"Ope_div_r only defined with respect to a tensor" << endl ;
61 for (
int ncmp = 0 ; ncmp<valence ; ncmp++)
65 if (target.
der_t!=0x0) {
79 for (
int ncmp = 0 ; ncmp<valence ; ncmp++)
virtual Term_eq div_r_term_eq(const Term_eq &) const
Division by of a Term_eq.
Term_eq action() const override
Computes the action of the current Ope_eq using its various parts.
~Ope_div_r() override
Destructor.
Ope_div_r(const System_of_eqs *syst, Ope_eq *so)
Constructor.
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.
Val_domain & set_domain(int)
Read/write of a particular Val_domain.
const Domain * get_domain(int i) const
returns a pointer on the domain.
Class used to describe and solve a system of equations.
void set_name_ind(int dd, char name)
Sets the name of one index ; the names must have been affected first.
void set_name_affected()
Affects the name of the indices.
Scalar & set(const Array< int > &ind)
Returns the value of a component (read/write version).
char const * get_name_ind() const
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...
int get_valence() const
Returns the valence.
bool is_name_affected() const
Check whether the names of the indices have been affected.
const Space & get_space() const
Returns the Space.
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...
void set_zero()
Sets the Val_domain to zero (logical state to zero and arrays destroyed).
bool check_if_zero() const
Check whether the logical state is zero or not.