UnaryOpCode::eval(): add missing error cases

parent fb551884
Pipeline #1405 passed with stage
in 1 minute and 24 seconds
...@@ -2964,8 +2964,14 @@ UnaryOpNode::eval_opcode(UnaryOpcode op_code, double v) noexcept(false) ...@@ -2964,8 +2964,14 @@ UnaryOpNode::eval_opcode(UnaryOpcode op_code, double v) noexcept(false)
case UnaryOpcode::steadyState: case UnaryOpcode::steadyState:
return (v); return (v);
case UnaryOpcode::steadyStateParamDeriv: case UnaryOpcode::steadyStateParamDeriv:
cerr << "UnaryOpNode::eval_opcode: not implemented on UnaryOpcode::steadyStateParamDeriv" << endl;
exit(EXIT_FAILURE);
case UnaryOpcode::steadyStateParam2ndDeriv: case UnaryOpcode::steadyStateParam2ndDeriv:
cerr << "UnaryOpNode::eval_opcode: not implemented on UnaryOpcode::steadyStateParam2ndDeriv" << endl;
exit(EXIT_FAILURE);
case UnaryOpcode::expectation: case UnaryOpcode::expectation:
cerr << "UnaryOpNode::eval_opcode: not implemented on UnaryOpcode::expectation" << endl;
exit(EXIT_FAILURE);
case UnaryOpcode::erf: case UnaryOpcode::erf:
return (erf(v)); return (erf(v));
case UnaryOpcode::diff: case UnaryOpcode::diff:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment