fixed: missing AB1 support

This commit is contained in:
Arne Morten Kvarving
2019-10-30 12:37:31 +01:00
parent e3da110cb9
commit 1bdfec61cd
2 changed files with 4 additions and 0 deletions

View File

@@ -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;

View File

@@ -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