Chi-Tech
theta_scheme_time_intgr.cc
Go to the documentation of this file.
2
3#include "ChiObjectFactory.h"
4
5#define scint static_cast<int>
6
7namespace chi_math
8{
9
11
13{
15
16 // clang-format off
17 params.SetGeneralDescription("Generalized theta-scheme");
18 params.SetDocGroup("DocTimeIntegrations");
19 // clang-format on
20
21 params.ChangeExistingParamToOptional("method",
23
24 params.AddRequiredParameter<double>("theta",
25 "The theta parameter for a theta scheme");
26
27 return params;
28}
29
31 const chi::InputParameters& params)
32 : TimeIntegration(params), theta_(params.GetParamValue<double>("theta"))
33{
34}
35
37
38} // namespace chi_math
void SetDocGroup(const std::string &doc_group)
void AddRequiredParameter(const std::string &name, const std::string &doc_string)
void SetGeneralDescription(const std::string &description)
void ChangeExistingParamToOptional(const std::string &name, T value, const std::string &doc_string="")
ThetaSchemeTimeIntegration(const chi::InputParameters &params)
static chi::InputParameters GetInputParameters()
static chi::InputParameters GetInputParameters()
RegisterChiObject(chi_math, QuadratureGaussChebyshev)
#define scint