8{
9 try {
10
11
13
14
15 auto model_cfg = pp.get_cfg()["Opinionet"];
16 const bool nw_is_directed =
18
19
20 if (nw_is_directed) {
22 model.run();
23 }
24
25 else {
27 model.run();
28 }
29
30 return 0;
31 }
32 catch (std::exception& e) {
33 std::cerr << e.what() << std::endl;
34 return 1;
35 }
36 catch (...) {
37 std::cerr << "Exception occured!" << std::endl;
38 return 1;
39 }
40}
The Opinionet model class.
Definition Opinionet.hh:82
A class to use at the top level of the model hierarchy as a mock parent.
Definition model.hh:1017
Container select_entities(const Manager &mngr, const DataIO::Config &sel_cfg)
Select entities according to parameters specified in a configuration.
Definition select.hh:213