MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / FindMySeg

Function FindMySeg

Tools/EBSurfaceTools/ConvertEBSurface.cpp:219–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static
220list<Segment>::iterator FindMySeg(list<Segment>& segs, const NodeMapIt& idx)
221{
222 for (list<Segment>::iterator it=segs.begin(); it!=segs.end(); ++it)
223 {
224 AMREX_ASSERT(it->size() == 2);
225 if ( ((*it)[0] == idx) || ((*it)[1] == idx) )
226 return it;
227 }
228 return segs.end();
229}
230
231list<list<Segment>> MakePolyLines(Vector<Segment>& segVec)
232{

Callers 1

MakePolyLinesFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected