MCPcopy Create free account
hub / github.com/IBAMR/IBAMR / sgn

Function sgn

examples/IBLevelSet/ex4/example.cpp:45–49  ·  view source on GitHub ↗

Declaring the sign of v and returning it.

Source from the content-addressed store, hash-verified

43
44// Declaring the sign of v and returning it.
45inline int
46sgn(double v)
47{
48 return ((v < 0) ? -1 : (v > 0) ? 1 : 0);
49}
50
51FoilInterface foilA;
52

Callers 2

setDataOnPatchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected