OGS
TimeDiscretization.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
5
7
8namespace NumLib
9{
11 GlobalVector const& x_old) const
12{
13 namespace LinAlg = MathLib::LinAlg;
14
15 // y = x_old / delta_t
16 LinAlg::copy(x_old, y);
17 LinAlg::scale(y, 1.0 / _delta_t);
18}
19
20} // end of namespace NumLib
MathLib::EigenVector GlobalVector
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:30
void scale(PETScVector &x, PetscScalar const a)
Definition LinAlg.cpp:37