Cantera  2.5.1
DAE_solvers.cpp
Go to the documentation of this file.
1 //! @file DAE_solvers.cpp Factory routine for picking the DAE solver package
2 
3 // This file is part of Cantera. See License.txt in the top-level directory or
4 // at https://cantera.org/license.txt for license and copyright information.
5 
6 #include "cantera/base/ct_defs.h"
9 
10 // DAE_DEVEL is turned off at the current time
11 #define DAE_DEVEL
12 #ifdef DAE_DEVEL
13 
14 namespace Cantera
15 {
16 DAE_Solver* newDAE_Solver(const std::string& itype, ResidJacEval& f)
17 {
18  if (itype == "IDA") {
19  return new IDA_Solver(f);
20  } else {
21  throw CanteraError("newDAE_Solver",
22  "unknown DAE solver: "+itype);
23  }
24 }
25 }
26 
27 #endif
Header file for class DAE_Solver.
Header file for class IDA_Solver.
Base class for exceptions thrown by Cantera classes.
Definition: ctexceptions.h:61
Wrapper for DAE solvers.
Definition: DAE_Solver.h:76
Wrapper for Sundials IDA solver.
Definition: IDA_Solver.h:41
Wrappers for the function evaluators for Nonlinear solvers and Time steppers.
Definition: ResidJacEval.h:56
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:264
DAE_Solver * newDAE_Solver(const std::string &itype, ResidJacEval &f)
Factor method for choosing a DAE solver.
Definition: DAE_solvers.cpp:16