27 #include <boost/filesystem/fstream.hpp>
36 void run_sim(
const boost::filesystem::path& infile,
const boost::filesystem::path& outfile,
37 bool write_xml,
double time_limit)
39 maquis::cout.precision(10);
44 boost::filesystem::ifstream param_file(infile);
46 throw std::runtime_error(std::string(
"Could not open parameter file ") + infile.string() +
".");
47 alps::Parameters p; p.extract_from_xml(param_file);
52 parms.
set(
"chkpfile", (outfile.parent_path() / outfile.stem()).
string() +
".chkp");
53 parms.
set(
"resultfile", (outfile.parent_path() / outfile.stem()).
string() +
".h5");
54 parms.
set(
"run_seconds", time_limit);
void set(std::string const &key, T const &value)
void run_sim(const boost::filesystem::path &infile, const boost::filesystem::path &outfile, bool write_xml, double time_limit)
wrapper of eigenstate_sim for symmetry factory
boost::shared_ptr< simulation_base > shared_ptr
symmetry factory: runtime dispatch for SymmGroup template argument