16#include <Domaine_Cl_dis_base.h>
17#include <Equation_base.h>
118 DoubleTab& correcteur=passe;
119 correcteur*=(1.-2.*gamma);
120 correcteur.
ajoute(gamma, present, VECT_REAL_ITEMS);
121 correcteur.
ajoute(gamma, passe2, VECT_REAL_ITEMS);
132 DoubleTab tmp(futur);
DoubleTab & futur(int i=1) override
Returns field values at instant t+i.
DoubleTab & passe(int i=1) override
Returns field values at instant t-i.
DoubleTab & valeurs() override
Returns the array of field values at the current time.
virtual void imposer_cond_lim(Champ_Inc_base &, double)=0
Class defining operators and methods for all reading operation in an input flow (file,...
class Equation_base The role of an equation is the calculation of one or more fields....
virtual const Champ_Inc_base & inconnue() const =0
virtual DoubleTab & derivee_en_temps_inco(DoubleTab &)
Returns the time derivative of the unknown I of the equation: dI/dt = M-1*(sum(operators(I) + sources...
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the discretized boundary condition domain associated with the equation.
Leap_frog This class represents a Leap_Frog time scheme.
double temps_defaut() const override
Returns the time that fields must return when valeurs() is called.
int nb_valeurs_futures() const override
Returns the number of future temporal values.
int faire_un_pas_de_temps_eqn_base(Equation_base &) override
Performs a Leap_frog time step on the equation passed as parameter.
double temps_futur(int i) const override
Returns the time at the i-th future value.
int nb_valeurs_temporelles() const override
Returns the number of temporal values to keep.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
double temps_courant() const
Returns the current time.
double dt_
Computation time step.
double pas_de_temps() const
Returns the current time step (delta_t).
void update_critere_statio(const DoubleTab &tab_critere, Equation_base &equation)
Updates stationnaire_atteint_ and residu_ (criterion: residu_ < seuil_statio_).
Base class for output streams.
void ajoute(_SCALAR_TYPE_ alpha, const TRUSTVect &y, Mp_vect_options opt=VECT_ALL_ITEMS)
virtual void echange_espace_virtuel(IsExchangeBlocking exchange_type=IsExchangeBlocking::DefaultBlocking, const std::string kernel_name="noname")