29 cerr <<
"bad valence in definition" << endl ;
40 for (
int i=0 ; i<valence ; i++)
46 for (
int i=0 ; i<valence ; i++)
67 cerr <<
"Should not call Ope_def::action" << endl ;
void compute_res()
Forces the computation of the result (when things have changed).
Term_eq * res
Result of the current definition.
Ope_def(const System_of_eqs *syst, Ope_eq *so, int val, char *name, Array< int > *ttype)
Constructor.
Term_eq action() const override
Computes the action of the current Ope_eq using its various parts.
Term_eq * get_res()
Returns the result.
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.
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.
int & set_index_type(int i)
Sets the type of the index number.
int get_valence() const
Returns the valence.
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.
void set_der_zero()
Sets the variation of the approriate type to zero.
Tensor * val_t
Pointer on the value, if the Term_eq is a Tensor.