carstenbauer / MonteCarlo.jl

Classical and quantum Monte Carlo simulations in Julia
https://carstenbauer.github.io/MonteCarlo.jl/dev/
Other
190 stars 19 forks source link

MonteCarloFlavor interfacing with lattices #37

Closed ffreyer closed 4 years ago

ffreyer commented 5 years ago

I've noticed that currently, there are only a few points left where MC and DQMC explicitly interface with the lattice. Other than in build_checkerboard(lattice) only a few calls to length(lattice) (or m.l.sites) remain. We should remove these in favor of nsites(model).

Maybe we should also rethink build_checkerboard(), since it is the only thing giving requirements to the lattice when writing a new model.

ffreyer commented 4 years ago

I've had a change of mind on this. Instead of length(model.l) or nsites(model) we now consistently use length(lattice(model)).