zierenberg / MonteCarloX.jl

This is a julia package for advanced Monte Carlo simulations of classical equilibrium and non-equilibrium processes
MIT License
4 stars 0 forks source link

modules in package are to be avoided #27

Closed zierenberg closed 4 years ago

zierenberg commented 4 years ago

Restructure full package to avoid modules. This might cause some problems with the current API. For example

Metropolis.accept()

would have to be changed to

metropolis()

or we introduce on Georges advice singletons and let multiple dispatch solve the problem, e.g.

struct Metropolis end
alg = Metroppolis()
function accept(a,b,alg::Metropolis)
function accept(a,b,alg::X) 
fmikulasch commented 4 years ago

this can be closed after commit 0d916817c50dc226935ca9896b2a163224abd827