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

Functions

int main (int, char **argv)
 

Function Documentation

◆ main()

int main ( int  ,
char **  argv 
)
8{
9 try {
10 // Initialize the PseudoParent from config file path
11 Utopia::PseudoParent pp(argv[1]);
12
13 // Initialize the main model instance with different template arguments
14 // and then iterate it ... Need separate cases for this.
15 HdfBenchModel model("HdfBench", pp);
16 model.run();
17
18 return 0;
19 }
20 catch (Utopia::Exception& e) {
22 }
23 catch (std::exception& e) {
24 std::cerr << e.what() << std::endl;
25 return 1;
26 }
27 catch (...) {
28 std::cerr << "Exception occurred!" << std::endl;
29 return 1;
30 }
31}
The base exception class to derive Utopia-specific exceptions from.
Definition exceptions.hh:15
The HdfBench Model.
Definition HdfBench.hh:36
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