MCPcopy Create free account
hub / github.com/Cantera/cantera / add

Method add

src/kinetics/ReactionPath.cpp:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void ReactionPathDiagram::add(ReactionPathDiagram& d)
131{
132 for (size_t n = 0; n < nPaths(); n++) {
133 Path* p = path(n);
134 size_t k1 = p->begin()->number;
135 size_t k2 = p->end()->number;
136 p->setFlow(p->flow() + d.flow(k1,k2));
137 }
138}
139
140void ReactionPathDiagram::add(shared_ptr<ReactionPathDiagram> d)
141{

Callers 3

addReactionMethod · 0.45
addReactionMethod · 0.45
addReactionMethod · 0.45

Calls 5

setFlowMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
flowMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected