fixed: missing AB1 support
This commit is contained in:
@@ -35,6 +35,8 @@ TimeIntegration::Method TimeIntegration::get (const std::string& type)
|
||||
return RK3;
|
||||
else if (type == "rk4")
|
||||
return RK4;
|
||||
else if (type == "ab1")
|
||||
return AB1;
|
||||
else if (type == "ab2")
|
||||
return AB2;
|
||||
else if (type == "ab3")
|
||||
@@ -51,6 +53,7 @@ TimeIntegration::Method TimeIntegration::get (const std::string& type)
|
||||
int TimeIntegration::Order (Method method)
|
||||
{
|
||||
switch (method) {
|
||||
case AB1:
|
||||
case EULER:
|
||||
case BE:
|
||||
return 1;
|
||||
|
||||
@@ -33,6 +33,7 @@ namespace TimeIntegration
|
||||
HEUN, //!< Heun-Euler, explicit
|
||||
RK3, //!< Kutta's third order method, explicit
|
||||
RK4, //!< Kutta's fourth order method, explicit
|
||||
AB1, //!< First order Adams-Bashforth, explicit
|
||||
AB2, //!< Second order Adams-Bashforth, explicit
|
||||
AB3, //!< Third order Adams-Bashforth, explicit
|
||||
AB4, //!< Fourth order Adams-Bashforth, explicit
|
||||
|
||||
Reference in New Issue
Block a user