8{
9 try {
10
12
13
15
16
17 model.run();
18
19 return 0;
20 }
23 }
24 catch (std::exception& e) {
25 std::cerr << e.what() << std::endl;
26 return 1;
27 }
28 catch (...) {
29 std::cerr << "Exception occured!" << std::endl;
30 return 1;
31 }
32}
The base exception class to derive Utopia-specific exceptions from.
Definition exceptions.hh:15
A very simple geomorphology model.
Definition Geomorphology.hh:73
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