Cell2Fire
A large-scale forest fire simulator.
Loading...
Searching...
No Matches
ReadArgs.h
1#ifndef READARGS
2#define READARGS
3
4#include <algorithm>
5#include <fstream>
6#include <iostream>
7#include <iterator>
8#include <string>
9#include <unordered_map>
10#include <unordered_set>
11#include <vector>
12/*
13 * Args structure
14 */
15typedef struct
16{
17 std::string InFolder, OutFolder, WeatherOpt, HarvestPlan, Simulator;
18 bool OutMessages, OutFl, OutIntensity, OutRos, OutCrown, OutCrownConsumption, OutSurfConsumption, Trajectories,
19 NoOutput, verbose, IgnitionsLog, Ignitions, OutputGrids, FinalGrid, PromTuned, Stats, BBOTuning, AllowCROS;
20 float ROSCV, ROSThreshold, CROSThreshold, HFIThreshold, HFactor, FFactor, BFactor, EFactor, FirePeriodLen;
21 float CBDFactor, CCFFactor, ROS10Factor, CROSActThreshold;
22 int MinutesPerWP, MaxFirePeriods, TotalYears, TotalSims, NWeatherFiles, IgnitionRadius, seed, nthreads, FMC,
23 scenario;
24 std::unordered_set<int> HCells, BCells;
25} arguments;
26
27char* getCmdOption(char** begin, char** end, const std::string& option);
28
29bool cmdOptionExists(char** begin, char** end, const std::string& option);
30
31void parseArgs(int argc, char* argv[], arguments* args_ptr);
32
33void printArgs(arguments args);
34
35int countWeathers(std::string directory_path);
36
37#endif
Definition ReadArgs.h:16