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

Function find_struct_handle_position

src/IB/ConstraintIBMethod.cpp:166–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165template <typename itr, typename T>
166inline int
167find_struct_handle_position(itr begin, itr end, const T& value)
168{
169 int position = 0;
170 while (begin != end)
171 {
172 if (*begin++ == value)
173 return position;
174 else
175 ++position;
176 }
177
178 TBOX_ASSERT(false);
179 return -1;
180}
181
182#if (NDIM == 3)
183// Routine to solve 3X3 equation to get rigid body rotational velocity.

Calls

no outgoing calls

Tested by

no test coverage detected