6 #ifndef ALPS_CONV_PARAMS_INCLUDED 7 #define ALPS_CONV_PARAMS_INCLUDED 21 .
define<std::size_t>(
"timelimit", 0,
"time limit for the simulation")
22 .define<std::string>(
"outputfile", basename+
".out.h5",
"name of the output file")
26 .
define<std::string>(
"checkpoint", base_outname+
".clone.h5",
"name of the checkpoint file to save to")
Parse sectioned INI file or HDF5 or command line, provide the results as dictionary.
params & define(const std::string &name, const std::string &descr)
Defines a parameter; returns false on error, and records the error in the object. ...
std::string origin_name(const params &p)
Convenience function to obtain the "origin" filename associated with the parameters object...
params & define_convenience_parameters(params ¶meters)
Defines a number of frequently-used parameters. Defines size_t timelimt, string outputfile, string checkpoint.
std::string get_basename(const std::string &path)
Returns the base name of the file (removing leading directories)
std::string remove_extensions(const std::string &filename)
Returns the file name stem with ALL extensions removed.