MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / addGenerator

Method addGenerator

src/sys/expressionparser.cxx:262–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void ExpressionParser::addGenerator(const string& name, FieldGeneratorPtr g) {
263 gen[name] = std::move(g);
264}
265
266void ExpressionParser::addBinaryOp(char sym, FieldGeneratorPtr b, int precedence) {
267 bin_op[sym] = std::make_pair(b, precedence);

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64