infinite loop in kmetis?

I have an adaptive mesh refinement application which calls metis and runs fine for many iterations and many different problems. Unfortunately, one of my major test cases eventually hangs. The place where it hangs is in subdomain.EliminateSubdomainEdges at the for(;;) loop. It seems to have gotten itself into an infinite loop. Any ideas?

RE: which version of metis are

which version of metis are you using?

RE: There is about 150,000 nodes

There is about 150,000 nodes in the graph and no weights. The partitioning is for 8 processors.

RE: I believe it is 4.01. It is

I believe it is 4.01. It is running on 64-bit Windows XP linked as a .dll file.

RE: Have you checked if the

Have you checked if the graph is consistent? That is, no self-loops, both (u,v) and (v,u) edges are there, and the weights on the edges/vertices are > 0?

RE: Looks like the problem

Looks like the problem disappeared. I recently added some more logic to check and correct the graph symmetry, so this probably has something to do with it.