21 #include "system_of_eqs.hpp"
25 Ope_eq(zesys, zedom, zesys->get_dom_max() - zesys->get_dom_min() + 1) {
26 for (
int n=0 ; n<
n_ope ; n++)
31 for (
int i=0 ; i<
n_ope ; i++)
36 Ope_def_global::~Ope_def_global() {
38 for (
int i=0 ; i<
n_ope ; i++)
50 cerr <<
"Should not call Ope_def_global::action" << endl ;
60 for (
int i=0 ; i<
n_ope ; i++)
67 for (
int i=0 ; i<
n_ope ; i++)
68 if (
auxi[i]->der_d==0x0)
72 for (
int i=0 ; i<
n_ope ; i++)
73 val += *
auxi[i]->val_d ;
80 for (
int i=0 ; i<
n_ope ; i++)
81 der += *
auxi[i]->der_d ;
Term_eq action() const override
Computes the action of the current Ope_eq using its various parts.
Term_eq ** auxi
Various parts of the result (i.e. the contributions of the various domains).
Ope_def_global(const System_of_eqs *syst, int dom, const char *name_ope)
Constructor.
Term_eq * get_res()
Returns the result.
void compute_res()
Forces the computation of the result (when things have changed).
Abstract class that describes the various operators that can appear in the equations.
const System_of_eqs * syst
The associated System_of_eqs.
MMPtr_array< Ope_eq > parts
Pointers of the various parts of the current operator.
int n_ope
Number of terms involved (2 for + for instance, only one for sqrt...)
int dom
Index of the Domain where the operator is defined.
Class used to describe and solve a system of equations.
Ope_eq * give_ope(int dom, const char *name, int bb=0) const
Function that reads a string and returns a pointer on the generated Ope_eq.
int get_dom_min() const
Returns the smallest index of the domains.
This class is intended to describe the manage objects appearing in the equations.