7 #include <boost/property_tree/ptree.hpp> 8 #include <boost/property_tree/xml_parser.hpp> 9 #include <boost/filesystem/path.hpp> 10 #include <boost/bimap.hpp> 44 Runner(
const std::vector<std::string>& overrides_list,
const std::string& config_file,
45 const RunMode& mode,
int timestep);
49 void initSimulators();
53 boost::property_tree::ptree getConfig();
55 boost::property_tree::ptree getRegionsConfig(
const std::vector<string>& names);
57 void write(std::ostream& out,
const boost::property_tree::ptree&);
63 std::shared_ptr<Simulator> addLocalSimulator(
const string& name,
const boost::property_tree::ptree& config);
65 std::shared_ptr<AsyncSimulator> addRemoteSimulator(
const string& name,
const boost::property_tree::ptree& config);
69 void makeSetupStruct();
71 boost::filesystem::path hdf5Path(
const string& name);
76 bool m_uses_mpi =
false;
77 bool m_is_master =
true;
88 MPI_Datatype m_setup_message;
SimulatorWorldrank(const std::string &name, int rank)
std::map< std::string, std::string > m_overrides
boost::filesystem::path m_output_dir
std::map< std::string, std::shared_ptr< Hdf5Saver > > m_hdf5_savers
std::map< std::string, shared_ptr< AsyncSimulator > > m_async_simulators
Helper for parsing the config, and starting the simulators.
Time Dependent Person DataType.
std::shared_ptr< Coordinator > m_coord
void run(T generator, const string &prefix)
std::map< std::string, std::shared_ptr< ClusterSaver > > m_vis_savers
std::map< std::string, boost::property_tree::ptree > m_region_configs
std::map< std::string, shared_ptr< Simulator > > m_local_simulators
Header for the Simulator class.
std::string m_travel_schedule
std::vector< std::string > m_region_order
Main class that contains and direct the virtual world.
shared_ptr< RemoteSimulatorReceiver > m_local_receiver
std::string m_config_file
Header file for the Saver class for the checkpointing functionality.
boost::property_tree::ptree m_config
boost::bimap< string, int > m_worldranks