14 , random(
std::size_t(parameters[
"SEED"]) + seed_offset)
20 return parameters.
define<
long>(
"SEED", 42,
"PRNG seed");
25 ar[
"/simulation/realizations/0/clones/0"] << *
this;
30 ar[
"/simulation/realizations/0/clones/0"] >> *
this;
46 names.push_back(it->first);
60 for(result_names_type::const_iterator it = names.begin(); it != names.end(); ++it){
63 return partial_results;
69 ar[
"checkpoint"] <<
random;
75 ar[
"checkpoint"] >>
random;
observable_collection_type measurements
Parse sectioned INI file or HDF5 or command line, provide the results as dictionary.
bool run(boost::function< bool()> const &stop_callback)
void save(std::string const &filename) const
result_names_type unsaved_result_names() const
std::vector< std::string > result_names_type
params & define(const std::string &name, const std::string &descr)
Defines a parameter; returns false on error, and records the error in the object. ...
virtual double fraction_completed() const =0
void insert(std::string const &name, std::shared_ptr< T > ptr)
void load(std::string const &filename)
results_type collect_results() const
static parameters_type & define_parameters(parameters_type ¶meters)
result_names_type result_names() const
mcbase(parameters_type const &parms, std::size_t seed_offset=0)
traits< Acc >::result_type result(const Acc &acc)
Functor-predicate: is it time to stop?
parameters_type parameters
std::map< std::string, std::shared_ptr< T > >::const_iterator const_iterator