Hi,
I am implementing the worm algorithm for the Bose Hubbard model. On of the "worm moves" is to insert a kink after the MASHA head this can cause a reconnection of the worm. I think that this move is possible only when there is a world line in the target site, other wise there is nothing to connect to. I tried to see were this condition is implement in the code but I failed to find it. I'll be grateful if someone can direct me to the location of this condition in the code, or tell me were my reasoning is wrong (may be there is some other way to close the world line).
Thanks in advance
Snir