MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / pos

Function pos

src/OpenFOAM/primitives/Scalar/Scalar.H:166–169  ·  view source on GitHub ↗

- Return 1 if s is positive but not 0

Source from the content-addressed store, hash-verified

164
165//- Return 1 if s is positive but not 0
166inline Scalar pos(const Scalar s)
167{
168 return (s > 0)? 1: 0;
169}
170
171
172//- Return 1 if s is positive or 0

Callers 5

pEqn.HFile · 0.50
pEqn.HFile · 0.50
TEqn.HFile · 0.50
pEqn.HFile · 0.50
correctAlphaFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected