cantera/src/numerics/ODE_integrators.cpp
Ray Speth e4c45b6429 General whitespace cleanup
Remove unnecessary blank lines and trailing whitespace. Replace tabs with
spaces.
2015-08-02 23:06:15 -04:00

29 lines
559 B
C++

//! @file ODE_integrators.cpp
#include "cantera/base/ct_defs.h"
#include "cantera/numerics/Integrator.h"
#ifdef HAS_SUNDIALS
#include "cantera/numerics/CVodesIntegrator.h"
#else
#include "CVodeInt.h"
#endif
namespace Cantera
{
Integrator* newIntegrator(const std::string& itype)
{
if (itype == "CVODE") {
#ifdef HAS_SUNDIALS
return new CVodesIntegrator();
#else
return new CVodeInt();
#endif
} else {
throw CanteraError("newIntegrator",
"unknown ODE integrator: "+itype);
}
return 0;
}
}