-
Notifications
You must be signed in to change notification settings - Fork 19
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
Round beta / delta_tau to get number of slices in DQMC #47
Conversation
Thanks for bringing this up. This should be discussed and handled in one way or another. In my private dqmc code I can either specify |
I'm wondering whether we should at least produce a warning when Example: Maybe we should even look at the difference Any thoughts? |
Yeah, this branch is actually just a local change I made so that a script I'm testing could run. There's definitely a lot more we can do to make it clear to a user what is going on. Putting your above comments together, it seems that a nice solution would be to have three separate methods concerning
|
Codecov Report
@@ Coverage Diff @@
## master #47 +/- ##
==========================================
+ Coverage 74.61% 74.61% +<.01%
==========================================
Files 25 25
Lines 969 981 +12
==========================================
+ Hits 723 732 +9
- Misses 246 249 +3
Continue to review full report at Codecov.
|
Okay, so it took some really ugly conditionals and whatnot since we can't dispatch on keyword arguments, but I got everything working. The interface I went with for now is
Thoughts / comments? |
Looks good to me! |
Not sure why the Travis CI isn't running. |
Gazillions of github CI jobs :) (They will probably fail) |
Can you fix the tests? It would also be good to have a few tests for the different keyword options. |
These tests pass locally on my machine (2017 MacBook Pro i5 on MacOS Catalina). Not sure what's wrong. Possibly related to BLAS / LAPACK non-determinism. |
Yeah, probably something like that. This exact test has also errored for one of the master test runs and magically worked again in the following run. Can you open a separate issue so that we don't forget to fix this? I'll ignore the test failure here and merge. |
I opened an issue myself: #50 |
I'm working on making a DQMC version of https://github.com/crstnbr/MonteCarlo.jl/blob/master/example/Ising2D.jl. Currently, the documented interface for
DQMC
says that I specifybeta
anddelta_tau
and then it calculatesslices
from their quotient and slices must be an integer. It's annoying that one has to fine tunedelta_tau
so thatbeta / delta_tau
is an integer. I propose that this should just be rounded, especially because due to floating point error, choosingdelta_tau = beta / 500
does not always meanbeta / delta_tau
can be converted to an integer.