Skip to content

small error in comment

https://develop.openfoam.com/Development/openfoam/-/blob/master/src/OpenFOAM/primitives/Scalar/Scalar.H#L242-246

The code is currently:

//- Return 1 if s is greater than zero, otherwise 1
inline Scalar pos(const Scalar s)
{
    return (s > 0)? 1: 0;
}

but surely the comment should actually say otherwise 0?