20 #include "system_of_eqs.hpp"
22 #include "term_eq.hpp"
24 #include "tensor_impl.hpp"
36 assert (residus[conte]->get_type_data()==TERM_T) ;
37 assert (residus[conte]->get_val_t().get_valence()==0) ;
39 assert (residus[conte+1]->get_type_data()==TERM_T) ;
40 assert (residus[conte+1]->get_val_t().get_valence()==0) ;
42 int old_pos = pos_res ;
53 sec.
set(old_pos) = auxi(0) ;
60 assert (residus[conte]->get_type_data()==TERM_T) ;
61 assert (residus[conte]->get_der_t().get_valence()==0) ;
63 assert (residus[conte+1]->get_type_data()==TERM_T) ;
64 assert (residus[conte+1]->get_der_t().get_valence()==0) ;
66 int old_pos = pos_res ;
77 sec.
set(old_pos) = auxi(0) ;
reference set(const Index &pos)
Read/write of an element.
Abstract class that implements the fonctionnalities common to all the type of domains.
virtual void export_tau(const Tensor &eq, int dom, int order, Array< double > &res, int &pos_res, const Array< int > &ncond, int n_cmp=-1, Array< int > **p_cmp=0x0) const
Exports all the residual equations corresponding to a tensorial one in the bulk.
virtual Array< int > nbr_conditions(const Tensor &eq, int dom, int order, int n_cmp=-1, Array< int > **p_cmp=0x0) const
Computes number of discretized equations associated with a given tensorial equation in the bulk.
int order
Order of the equation.
bool take_into_account(int) const override
Check whether the variation of the residual has to be taken into account when computing a given colum...
virtual ~Eq_vel_pot()
Destructor.
Eq_vel_pot(const Domain *dom, int nd, int ord, Ope_eq *ope, Ope_eq *ope_constant)
Constructor.
void export_der(int &, Term_eq **, Array< double > &, int &) const override
Generates the discretized variations, from the various Term_eq computed by the equation.
void export_val(int &, Term_eq **, Array< double > &, int &) const override
Generates the discretized errors, from the various Term_eq computed by the equation.
Array< int > do_nbr_conditions(const Tensor &tt) const override
Computes the number of conditions associated with the equation.
Class implementing an equation.
const Domain * dom
Pointer on the Domain where the equation is defined.
int ndom
Number of the domain.
Array< int > * n_cond
Number of discretized equations, component by component.
MMPtr_array< Ope_eq > parts
Array of pointers on the various terms.
Abstract class that describes the various operators that can appear in the equations.
This class is intended to describe the manage objects appearing in the equations.