MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / getNumberOfStages

Function getNumberOfStages

src/Numerical/ODEInt.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace seissol::ode {
10
11int getNumberOfStages(RungeKuttaVariant variant) {
12 std::unordered_map<RungeKuttaVariant, int> variantToNumberOfStages = {
13 {RungeKuttaVariant::RK4, 4},
14 {RungeKuttaVariant::RK4Ralston, 4},
15 {RungeKuttaVariant::RK438, 4},
16 {RungeKuttaVariant::RK6Butcher1, 7},
17 {RungeKuttaVariant::RK6Butcher2, 7},
18 {RungeKuttaVariant::RK7VernerMostEfficient, 9}};
19 return variantToNumberOfStages[variant];
20}
21void initializeRungeKuttaScheme(RungeKuttaVariant variant,
22 int& numberOfStages,
23 Eigen::MatrixXd& a,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected