Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected default behaviour: tolerance for wannerisation ignored #357

Open
JeromeCCP9 opened this issue Mar 1, 2021 · 1 comment
Open

Comments

@JeromeCCP9
Copy link
Collaborator

Hello Wannier Developers,

we noticed that the default behaviour currently seems to be to ignore the convergence threshold for wannierisation (the input variable conv_tol), which is a little surprising because it causes the wannierisation to perform the maximum number of iterations.

This is because conv_window (the number of times the wannierisation must meet convergence criteria before being accepted as converged) is set by default to -1 in param_read().

I see that the default value for conv_window is used unless conv_noise_amp is set to some positive value or conv_window is specified explicitly. Various of the test cases do indeed explicitly specify both conv_tol and conv_window.

Isn't it a little confusing that the default behaviour is to ignore the tolerance and do a fixed number of iterations? Wouldn't it be better to set conv_window be set to a default of, say, 3 and then the behaviour is simpler?

If this is a known peculiarity/feature/issue, then of course please do close this issue directly.

Yours, with many thanks,
Jerome.

@giovannipizzi
Copy link
Member

I let @mostofi and @jryates comment, but (if confirmed, but I think you're right) I think that indeed having a sensible default for conv_tol and conv_window could be a good idea to take into account, and use the number of iterations just as a maximum to avoid infinite loops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants