@@ -49,15 +49,16 @@ int main(int argc, char *argv[])
49
49
par::Params simulationParameters (argv[1 ], " : " ); // Be extremely careful with the delimiter, especially white spaces
50
50
// std::cout << simulationParameters << std::endl;
51
51
52
- unsigned int maxCohorts = simulationParameters.get_val <unsigned int >(" maxCohorts" );
53
- double n_t = simulationParameters.get_val <double >(" n_t" );
54
- double t0 = simulationParameters.get_val <double >(" t0" );
55
- double t_max = simulationParameters.get_val <double >(" t_max" );
52
+ // unsigned int maxCohorts = simulationParameters.get_val<unsigned int>("maxCohorts");
53
+ // double n_t = simulationParameters.get_val<double>("n_t");
54
+ // double t0 = simulationParameters.get_val<double>("t0");
55
+ // double t_max = simulationParameters.get_val<double>("t_max");
56
56
std::string climate_file = simulationParameters.get_val <std::string>(" climate_file" );
57
57
std::string species_filenames = simulationParameters.get_val <std::string>(" species_filenames" );
58
58
std::string species_path = simulationParameters.get_val <std::string>(" species_path" );
59
- std::string init_filenamePattern = simulationParameters.get_val <std::string>(" init_filenamePattern" );
60
- std::string init_path = simulationParameters.get_val <std::string>(" init_path" );
59
+ // std::string init_filenamePattern = simulationParameters.get_val<std::string>("init_filenamePattern");
60
+ // std::string init_path = simulationParameters.get_val<std::string>("init_path");
61
+ std::string forestDataFile = simulationParameters.get_val <std::string>(" forestDataFile" );
61
62
62
63
Species* sp = new Species (species_filenames, species_path, " = " ); // Be extremely careful with the delimiter, especially white spaces
63
64
// std::cout << *sp << std::endl;
@@ -67,9 +68,11 @@ int main(int argc, char *argv[])
67
68
Landscape *land = new Landscape (climate_file);
68
69
// std::cout << *land << std::endl;
69
70
70
- Forest forest (land, sp, init_path, init_filenamePattern, maxCohorts );
71
+ Forest forest (land, sp, forestDataFile );
71
72
forest.print ();
72
73
74
+ forest.spatialDynamics ();
75
+
73
76
// double a = 0.84;
74
77
// double b = 2.87;
75
78
// double c = 5;
0 commit comments