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

Functions

int main (int, char **argv)
 

Function Documentation

◆ main()

int main ( int  ,
char **  argv 
)
6{
7 try {
8 // Create PseudoParent and config file reference
9 Utopia::PseudoParent pp(argv[1]);
10
11 // Set the initial state, then create the model instance
12 Vegetation model("Vegetation", pp);
13
14 // Just run!
15 model.run();
16
17 return 0;
18 }
19 catch (std::exception& e) {
20 std::cerr << e.what() << std::endl;
21 }
22 catch (...) {
23 std::cerr << "Exception occurred!" << std::endl;
24 return 1;
25 }
26}
A very simple vegetation model.
Definition Vegetation.hh:38
A class to use at the top level of the model hierarchy as a mock parent.
Definition model.hh:1017