carstenbauer / MonteCarlo.jl

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

remove (full) types from savefiles #89

Closed ffreyer closed 3 years ago

ffreyer commented 3 years ago

This keeps getting in the way when making changes to existing structs. We could just as easily save :DQMC and dispatch on Val(:DQMC) for file loading. (Or use if-statements if dispatch is slow)

With that change we can probably also clean up the DQMC constructors to some degree. If we keep the complete() / make_concrete() functions, we can probably also make a macro to generate them with the relevant constructors.