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

Function signIndex

src/mesh/blockMesh/blockMesh/blockMeshMergeFast.C:183–186  ·  view source on GitHub ↗

Sign the index corresponding to the map

Source from the content-addressed store, hash-verified

181
182// Sign the index corresponding to the map
183inline label signIndex(const int map, const label i)
184{
185 return map < 0 ? -i-1 : i;
186}
187
188// Reverse a signed index with the number of divisions
189inline label unsignIndex(const label i, const label ni)

Callers 1

mapijFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected