You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only purpose for the first loop is to get the total number of neighbours, i.e. xadj[ne] after L208, which is then used to allocate adjncy in L213.
The second loop then do the real job, which has already done by the first one.
These two loops could be merged into one, if something supports push_back() like std::vector<int> was introduced.
If so, the total running time might be reduced by about 5%.
The text was updated successfully, but these errors were encountered:
When I run
mpmetis
on a 4,000,000-element mesh, the function namedFindCommonElements()
costs about 11% of the total running time:It is called in two loops in
CreateGraphDual()
:xadj[ne]
after L208, which is then used to allocateadjncy
in L213.These two loops could be merged into one, if something supports
push_back()
likestd::vector<int>
was introduced.If so, the total running time might be reduced by about 5%.
The text was updated successfully, but these errors were encountered: