cantera/Cantera/src/numerics/DAE_solvers.cpp
Harry Moffat e463b77fa2 Added an endl printing capability to writelog(). Some systems differentiate
between endl and \n when it comes to flushing the output.
Added C++ printing utilities
2008-04-08 20:19:26 +00:00

31 lines
630 B
C++

#include "ct_defs.h"
#include "DAE_Solver.h"
// DAE_DEVEL is turned off at the current time
#ifdef DAE_DEVEL
#ifdef HAS_SUNDIALS
#include "IDA_Solver.cpp"
#endif
namespace Cantera {
DAE_Solver* newDAE_Solver(string itype) {
if (itype == "IDA") {
#ifdef HAS_SUNDIALS
return new IDA_Solver();
#else
raise CanteraError("newDAE_Solver","IDA solver requires sundials"
" package, but Cantera was not built with sundials.");
#endif
}
else {
throw CanteraError("newDAE_Solver",
"unknown DAE solver: "+itype);
}
}
}
#
#endif