SyTen

◆ trim_dt()

template<typename Solver >
void syten::Krylov::Evolution::Evolver< Solver >::trim_dt ( Conf conf) const
inlineprivate

If the difference between the current and target time is less than dt, dt is changed to that difference or zero if that difference is smaller than 0.001 times the current dt.

Put another way, we will reduce dt by up to a factor of 1000 to hit the configured tend exactly but will otherwise skip the last step (by setting dt to zero).

References syten::abs(), and syten::logGD().

Referenced by syten::Krylov::Evolution::Evolver< Solver >::evolve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: