Utopia 2
Framework for studying models of complex & adaptive systems.
Loading...
Searching...
No Matches
Functions
Geomorphology.cc File Reference
#include <iostream>
#include "Geomorphology.hh"
Include dependency graph for Geomorphology.cc:

Functions

int main (int, char *argv[])
 

Function Documentation

◆ main()

int main ( int  ,
char *  argv[] 
)
8{
9 try {
10 // Create PseudoParent and get a config file reference
11 Utopia::PseudoParent pp(argv[1]);
12
13 // Set the initial state, then create the model instance
14 Geomorphology model("Geomorphology", pp);
15
16 // Just run!
17 model.run();
18
19 return 0;
20 }
21 catch (Utopia::Exception& e) {
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