103 for (
size_t i = 0; i <
m_nvars; ++i)
127 for (
size_t m = 0; m <=
m_order; ++m)
131 for (
size_t i = 0; i <
m_nvars; ++i)
149 for (
size_t m = 0; m < nodes; ++m)
154 for (
size_t i = 0; i <
m_nvars; ++i)
166 for (
size_t i = 0; i <
m_nvars; ++i)
180 [[maybe_unused]]
const size_t timestep,
const NekDouble delta_t)
194 for (
size_t m = 1; m <=
m_order; ++m)
196 for (
size_t k = 1; k <= m; ++k)
202 m_time + k * (delta_t / m),
213 for (
size_t i = 0; i <
m_nvars; ++i)
216 m_Y[k - 1][i], 1,
m_Y[k][i], 1);
223 m_time + (k - 1) * (delta_t / m));
224 for (
size_t i = 0; i <
m_nvars; ++i)
227 m_Y[k - 1][i], 1,
m_Y[k][i], 1);
234 m_time + k * (delta_t / m));
241 m_time + k * (delta_t / m),
247 for (
size_t i = 0; i <
m_nvars; ++i)
256 for (
size_t i = 0; i <
m_nvars; ++i)
265 for (
size_t m = 1; m <
m_order; ++m)
268 for (
size_t k = m; k <
m_order; ++k)
270 for (
size_t i = 0; i <
m_nvars; ++i)
275 (k - m + 1.0) / ((k + 1.0) - (k - m + 1.0)),
281 for (
size_t k = m; k <
m_order; ++k)
283 for (
size_t i = 0; i <
m_nvars; ++i)
291 for (
size_t i = 0; i <
m_nvars; ++i)
300 for (
size_t m = 1; m <=
m_order / 2; ++m)
305 for (
size_t k = 1; k <= m; ++k)
309 (k - 1 + 0.25) * (delta_t / m),
311 for (
size_t i = 0; i <
m_nvars; ++i)
314 -1.0,
m_Y[2 * k - 2][i], 1,
318 m_time + (k - 0.25) * (delta_t / m),
320 for (
size_t i = 0; i <
m_nvars; ++i)
325 1,
m_Y[2 * k][i], 1);
334 for (
size_t i = 0; i <
m_nvars; ++i)
337 m_Y[0][i], 1,
m_Y[1][i], 1);
342 for (
size_t k = 2; k <= 2 * m; ++k)
345 m_time + (k - 1) * (delta_t / (2 * m)));
346 for (
size_t i = 0; i <
m_nvars; ++i)
349 m_Y[k - 2][i], 1,
m_Y[k][i], 1);
352 m_time + k * (delta_t / (2 * m)));
357 for (
size_t i = 0; i <
m_nvars; ++i)
366 for (
size_t i = 0; i <
m_nvars; ++i)
375 for (
size_t m = 1; m <
m_order / 2; ++m)
378 for (
size_t k = m; k <
m_order / 2; ++k)
380 for (
size_t i = 0; i <
m_nvars; ++i)
386 std::pow(k - m + 1.0, 2) /
387 (std::pow(k + 1.0, 2) - std::pow(k - m + 1.0, 2)),
393 for (
size_t k = m; k <
m_order / 2; ++k)
395 for (
size_t i = 0; i <
m_nvars; ++i)
403 for (
size_t i = 0; i <
m_nvars; ++i)
419 os <<
"Time Integration Scheme: " <<
GetFullName() << std::endl;
424 os <<
"Time Integration Scheme: " <<
GetFullName() << std::endl;
Class for spectral deferred correction integration.
LUE TimeIntegrationSchemeType v_GetIntegrationSchemeType() const override
LUE NekDouble v_GetTimeStability() const override
LUE void v_printFull(std::ostream &os) const override
LUE size_t v_GetNumIntegrationPhases() const override
LUE void v_SetSolutionVector(const size_t Offset, const DoubleArray &y) override
LUE std::string v_GetName() const override
LUE const TripleArray & v_GetSolutionVector() const override
LUE void v_print(std::ostream &os) const override
Worker method to print details on the integration scheme.
TimeIntegrationSchemeOperators m_op
LUE TripleArray & v_UpdateSolutionVector() override
DoubleArray m_F
Array containing the solution values.
size_t m_order
Array corresponding to the stage Derivatives.
TripleArray m_T
Array containing the stage values.
DoubleArray m_F0
Array corresponding to the stage Derivatives.
LUE size_t v_GetOrder() const override
TripleArray m_T0
Array containing the solution values.
LUE ConstDoubleArray & v_TimeIntegrate(const size_t timestep, const NekDouble delta_t) override
Worker method that performs the time integration.
std::vector< NekDouble > m_freeParams
LUE std::vector< NekDouble > v_GetFreeParams() const override
LUE std::string v_GetVariant() const override
LUE void v_InitializeScheme(const NekDouble deltaT, ConstDoubleArray &y_0, const NekDouble time, const TimeIntegrationSchemeOperators &op) override
Worker method to initialize the integration scheme.
TimeIntegrationSchemeType m_schemeType
LUE void print(std::ostream &os) const
LUE std::string GetFullName() const
Binds a set of functions for use by time integration schemes.
void DoImplicitSolve(InArrayType &inarray, OutArrayType &outarray, const NekDouble time, const NekDouble lambda) const
void DoProjection(InArrayType &inarray, OutArrayType &outarray, const NekDouble time) const
void DoOdeRhs(InArrayType &inarray, OutArrayType &outarray, const NekDouble time) const
AT< AT< NekDouble > > DoubleArray
AT< NekDouble > SingleArray
TimeIntegrationSchemeType
AT< AT< AT< NekDouble > > > TripleArray
std::shared_ptr< TimeIntegrationSchemeGEM > TimeIntegrationSchemeGEMSharedPtr
std::ostream & operator<<(std::ostream &os, const BasisKey &rhs)
void Svtsvtp(int n, const T alpha, const T *x, int incx, const T beta, const T *y, int incy, T *z, int incz)
Svtsvtp (scalar times vector plus scalar times vector):
void Svtvp(int n, const T alpha, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Svtvp (scalar times vector plus vector): z = alpha*x + y.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
void Vsub(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Subtract vector z = x-y.