https://linen.dev logo
So this will depend on the specific OpenFOAM fork ...
# programming
e
So this will depend on the specific OpenFOAM fork you're targeting, but in general the combineOp is just a struct with
void operator()
that takes two objects and combines them. The result of combination is put into the first argument. Look in opts.H file for your fork for examples. Generally these combineOps with have "Eq" in the name, so
plusEqOp
adds 2nd parameter to first one (The Eq in the name signifies that it is an assignment to the first parameter, I think) Another family of operations (not combine ones though) will take two const params and return an object (eg.
plusOp
,
sumOp
... etc), so whenvever you see CombineOp in function signatures, use the first variant.