28 #include "../utility/numutil.h"
31 : reactantIndex_( 1, 0 ),
54 args_ =
new double[ mol.size() + 1 ];
56 for (
unsigned int i = 0; i < mol.size(); ++i ) {
63 args_[mol.size()] = 0.0;
75 cout <<
"Error occurred in parser.\n"
76 <<
"Message: " << e.GetMsg() <<
"\n"
77 <<
"Formula: " << e.GetExpr() <<
"\n"
78 <<
"Token: " << e.GetToken() <<
"\n"
79 <<
"Position: " << e.GetPos() <<
"\n"
80 <<
"Error code: " << e.GetCode() << endl;
88 }
catch(mu::Parser::exception_type &e) {
148 catch (mu::Parser::exception_type &e )
150 cerr <<
"Error: " << e.GetMsg() << endl;
168 catch ( mu::Parser::exception_type & e )
void setExpr(const string &e)
double getVolScale() const
const unsigned int getTarget() const
void setVolScale(double vs)
void setReactantIndex(const vector< unsigned int > &mol)
double operator()(const double *S, double t) const
void evalPool(double *s, double t) const
void setTarget(unsigned int tgt)
void showError(mu::Parser::exception_type &e)
const vector< unsigned int > & getReactantIndex() const
const string & getExpr() const
const FuncTerm & operator=(const FuncTerm &other)
vector< unsigned int > reactantIndex_