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

Method generate

tests/unit/sys/test_expressionparser.cxx:52–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 return std::make_shared<BinaryGenerator>(args.front(), args.back());
51 }
52 BoutReal generate(const Context& ctx) override {
53 return a->generate(ctx) + b->generate(ctx);
54 }
55 std::string str() const override {
56 return std::string{"add(" + a->str() + ", " + b->str() + ")"};
57 }

Callers 6

generateMethod · 0.45
TEST_FFunction · 0.45
generateMethod · 0.45
TEST_FFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected