-
- Downloads
Replace set_pta call with variadic ctor args
This is the mechanism used to supply the `parallel_tempering` update in the frustmag sim with a reference to the `pt_adapter` to invoke `negotiate_update`. The previous solution was ugly (required tons of metaprogramming to fiddle through the update muxer). We now pass a reference to the simulation as an addition ctor argument to all updates. The update ctors can choose to bind these additional arguments or absorb them in a variadic argument pack.
Showing
- frustmag/frustmag.hpp 1 addition, 3 deletionsfrustmag/frustmag.hpp
- frustmag/update/global_trafo.hpp 3 additions, 1 deletionfrustmag/update/global_trafo.hpp
- frustmag/update/mux.hpp 3 additions, 60 deletionsfrustmag/update/mux.hpp
- frustmag/update/overrelaxation.hpp 3 additions, 1 deletionfrustmag/update/overrelaxation.hpp
- frustmag/update/parallel_tempering.hpp 7 additions, 8 deletionsfrustmag/update/parallel_tempering.hpp
- frustmag/update/single_flip.hpp 2 additions, 1 deletionfrustmag/update/single_flip.hpp
- pt_adapter.hpp 2 additions, 3 deletionspt_adapter.hpp
Loading
Please register or sign in to comment