dipc-cc / hubbard

Python tools for mean-field Hubbard models
https://dipc-cc.github.io/hubbard/
GNU Lesser General Public License v3.0
21 stars 8 forks source link

enh: introduced HH.converge(..., max_iter=...) to enable loop break #135

Closed tfrederiksen closed 1 year ago

tfrederiksen commented 1 year ago

Sometimes a MFH calculation is simply not converging to the desired tolerance. The user may wish to set the maximum number of iterations not to be trapped in an infinite loop.

sofiasanz commented 1 year ago

Thank you for the PR. I like the idea :) I only left one comment.

tfrederiksen commented 1 year ago

I only left one comment.

Where? ;)

sofiasanz commented 1 year ago

I only left one comment.

Where? ;)

Line 635.

sofiasanz commented 1 year ago

Sorry, my comment was pending apparently, I submitted it, is it visible now?