16#include <Schema_Adams_Bashforth_order_2.h>
17#include <Equation_base.h>
85 double past_time = times[0];
86 double present_time = times[1];
87 double future_time = times[2];
88 double past_time_step = present_time-past_time;
91 coefficients()[1] *= (future_time+present_time-2*past_time);
Class defining operators and methods for all reading operation in an input flow (file,...
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.
Schema_Adams_Bashforth_base.
const DoubleTab & coefficients() const override
class Schema_Adams_Bashforth_order_2 This class represents a variable time-step second-order Adams-Ba...
int nb_pas_dt_seuil() const override
Returns the number of time steps strictly beyond which the Adams-Bashforth scheme is applied.
int nb_valeurs_temporelles() const override
Returns the number of temporal values to keep.
int nb_valeurs_passees() const override
Returns the number of past temporal values.
void compute_adams_bashforth_coefficients(double time_step, const DoubleTab ×) override
Base class for output streams.
_SIZE_ size_array() const
void resize(_SIZE_ n, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)