20 #include "system_of_eqs.hpp"
22 #include "term_eq.hpp"
24 #include "tensor_impl.hpp"
39 dom{zedom}, ndom{nd}, n_ope{np}, parts{n_ope,initialize}, called{false}, n_cond{nullptr}, n_cond_tot{},
40 n_cmp_used{nused}, p_cmp_used{pused}
45 for(
auto & p :
parts) safe_delete(p);
50 int old_conte = conte ;
51 for (
int i=0 ; i<
n_ope ; i++) {
52 if (res[conte]!=
nullptr)
53 *res[conte] =
parts[i]->action() ;
60 Tensor copie (res[old_conte]->get_val_t()) ;
int get_size(int i) const
Returns the size of a given dimension.
Abstract class that implements the fonctionnalities common to all the type of domains.
bool called
Indicator checking whther the result has been computed already once.
virtual Array< int > do_nbr_conditions(const Tensor &tt) const =0
Computes the number of conditions associated with the equation.
virtual void apply(int &conte, Term_eq **res)
Computes the terms involved in computing the residual of the equations.
virtual ~Equation()
Destructor.
int n_ope
Number of terms involved in the equation (one for bulk, two or more fot matching.....
int n_comp
Number of components of the residual (1 for a scalar, 6 for a symmetric rank-2 tensor etc).
Array< int > * n_cond
Number of discretized equations, component by component.
MMPtr_array< Ope_eq > parts
Array of pointers on the various terms.
Equation(const Domain *dom, int nd, int nope, int n_cmp=-1, Array< int > **p_cmp=nullptr)
Constructor.
int n_cond_tot
Total number of discretized equations (essentially the number of all coefficients of the residual).
This class is intended to describe the manage objects appearing in the equations.