8{
9 try {
10
11
12
14
15
16 std::vector<double> state(1E3, 0.0);
18
19
20 model.run();
21
22
23
24
25 pp.get_logger()->info("All done.");
26 pp.get_logger()->info("Really.");
27
28 return 0;
29 }
32 }
33 catch (std::exception& e) {
34 std::cerr << e.what() << std::endl;
35 return 1;
36 }
37 catch (...) {
38 std::cerr << "An unexpected exception occurred!" << std::endl;
39 return 1;
40 }
41}
The base exception class to derive Utopia-specific exceptions from.
Definition exceptions.hh:15
Dummy model with simple update rule.
Definition dummy.hh:19
A class to use at the top level of the model hierarchy as a mock parent.
Definition model.hh:1017
int handle_exception(exc_t &exc)
A helper function to handle a Utopia-specific exception.
Definition exceptions.hh:140