OGS
TimeDiscretization.cpp
Go to the documentation of this file.
1
12#include "TimeDiscretization.h"
13
15
16namespace NumLib
17{
19 GlobalVector const& x_old) const
20{
21 namespace LinAlg = MathLib::LinAlg;
22
23 // y = x_old / delta_t
24 LinAlg::copy(x_old, y);
25 LinAlg::scale(y, 1.0 / _delta_t);
26}
27
28} // end of namespace NumLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
void getWeightedOldX(GlobalVector &y, GlobalVector const &x_old) const override
Returns .
double _delta_t
the timestep size
void copy(PETScVector const &x, PETScVector &y)
Definition LinAlg.cpp:37
void scale(PETScVector &x, PetscScalar const a)
Definition LinAlg.cpp:44