38#include <boost/algorithm/string/trim.hpp>
51 boost::algorithm::trim(
m_expr);
52 boost::algorithm::trim(
m_vlist);
60 const std::string &vlist)
61 : m_vlist(vlist), m_expr(expr), m_expr_id(-1), m_evaluator(evaluator)
63 boost::algorithm::trim(
m_expr);
64 boost::algorithm::trim(
m_vlist);
78 catch (
const std::runtime_error &e)
82 std::string(
"Equation::Equation() fails on expression [") +
m_expr +
88 catch (
const std::string &e)
92 std::string(
"Equation::Equation() fails on expression [") +
m_expr +
118 catch (
const std::runtime_error &e)
121 std::string(
"Equation::Evaluate fails on expression [") +
m_expr +
125 catch (
const std::string &e)
128 std::string(
"Equation::Evaluate fails on expression [") +
m_expr +
145 catch (
const std::runtime_error &e)
148 "Equation::Evaluate fails on expression [" +
m_expr +
"]\n";
151 catch (
const std::string &e)
154 "Equation::Evaluate fails on expression [" +
m_expr +
"]\n";
170 catch (
const std::runtime_error &e)
173 "Equation::Evaluate fails on expression [" +
m_expr +
"]\n";
176 catch (
const std::string &e)
179 "Equation::Evaluate fails on expression [" +
m_expr +
"]\n";
210 std::vector<Array<OneD, const NekDouble>> points;
228 catch (
const std::runtime_error &e)
231 "Equation::Evaluate fails on expression [" +
m_expr +
"]\n";
235 catch (
const std::string &e)
238 "Equation::Evaluate fails on expression [" +
m_expr +
"]\n";
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
InterpreterSharedPtr m_evaluator
NekDouble GetTime() const
Returns time spend on expression evaluation at points (it does not include parse/pre-processing time)...
std::string GetVlist(void) const
Equation & operator=(const Equation &src)
std::string GetExpression(void) const
void SetConstants(const std::map< std::string, NekDouble > &constants)
void SetParameter(const std::string &name, NekDouble value)
NekDouble Evaluate() const
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< Interpreter > InterpreterSharedPtr