3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-26 06:14:14 +01:00

Change MC parameter names

modified:   triqs/mc_tools/mc_generic.hpp
This commit is contained in:
Michel Ferrero 2013-09-05 17:54:49 +02:00
parent 9e10d44f2a
commit eaad5fa41d

View File

@ -61,14 +61,13 @@ namespace triqs { namespace mc_tools {
* \param[in] AfterCycleDuty a function bool() to be called after each QMC cycle * \param[in] AfterCycleDuty a function bool() to be called after each QMC cycle
*/ */
mc_generic(utility::parameters const & P, std::function<bool()> AfterCycleDuty = std::function<bool()>() ) : mc_generic(utility::parameters const & P, std::function<bool()> AfterCycleDuty = std::function<bool()>() ) :
RandomGenerator(std::string(P["Random_Generator_Name"]), long(P["Random_Seed"])), RandomGenerator(std::string(P["random_name"]), long(P["random_seed"])),
//RandomGenerator(P["Random_Generator_Name"]), P.value_or_default("Random_Seed",1)), report(&std::cout,int(P["verbosity"])),
report(&std::cout,int(P["Verbosity"])),
AllMoves(RandomGenerator), AllMoves(RandomGenerator),
AllMeasures(),AllMeasuresAux(), AllMeasures(),AllMeasuresAux(),
Length_MC_Cycle(long(P["Length_Cycle"])), /// NOT NICE THIS EXPLICIT CAST : no unsigned in parameters, really ?? Length_MC_Cycle(long(P["length_cycle"])), /// NOT NICE THIS EXPLICIT CAST : no unsigned in parameters, really ??
NWarmIterations(long(P["N_Warmup_Cycles"])), NWarmIterations(long(P["n_warmup_cycles"])),
NCycles(long(P["N_Cycles"])), NCycles(long(P["n_cycles"])),
after_cycle_duty(AfterCycleDuty), after_cycle_duty(AfterCycleDuty),
sign_av(0) {} sign_av(0) {}