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

Minimal Working Example does not work #175

Closed
andrewkhardy opened this issue Apr 21, 2023 · 2 comments · Fixed by #176
Closed

Minimal Working Example does not work #175

andrewkhardy opened this issue Apr 21, 2023 · 2 comments · Fixed by #176
Labels

Comments

@andrewkhardy
Copy link

Hi there! Excited to see a Julia implementation of DQMC. Perhaps this is still a work-in-progress, but I am unable to get the minimal working example to run.

If I run the following on Julia 1.8.5, this is the output

] add https://github.com/carstenbauer/MonteCarlo.jl
>using MonteCarlo 
>dqmc = DQMC(HubbardModel(), beta = 1.0)
Determinant quantum Monte Carlo simulation
Model: attractive Hubbard model
Beta: 1.0 (T ≈ 1.0)
Measurements: 0 (0 + 0)
>run(dqmc)
 MethodError: no method matching run(::DQMC{HubbardModel{Lattice{2}}, DensityHirschField{Float64}, ConfigRecorder{BitArray}, MonteCarlo.DQMCStack{Float64, Float64, Matrix{Float64}, Matrix{Float64}, LinearAlgebra.Hermitian{Float64, Matrix{Float64}}, LinearAlgebra.Diagonal{Float64, Vector{Float64}}, MonteCarlo.StandardFieldCache{Float64, Float64, Vector{Float64}, Float64}}, MonteCarlo.UnequalTimeStack{Float64, Matrix{Float64}}, SimpleScheduler{Tuple{MonteCarlo.AcceptanceStatistics{LocalSweep}}}})
Closest candidates are:
  run(::Base.AbstractCmd, ::Any...; wait) at process.jl:477
Stacktrace:
 [1] top-level scope
   @ REPL[5]:1

What do I need to fix as it does not seem to be loading any of the actual methods from your package?

@ffreyer
Copy link
Collaborator

ffreyer commented Apr 21, 2023

Oh that probably just needs to be run! instead

@andrewkhardy
Copy link
Author

Thanks! Works now. Add it to the list of things to change in the docs I suppose.

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

Successfully merging a pull request may close this issue.

2 participants