{
po::options_description desc("Available options");
desc.add_options()
- ("help,h", "produce help message")
+ ("help,h", "show this help")
("windspeed,w", po::value<double>()->default_value(10),
- "wind speed given in m/s")
- ("size,s", po::value<std::string>()->default_value("small"),
- "lattice size (small/large)")
+ "wind speed (m/s)")
+ ("size,s", po::value<char>()->default_value('s'),
+ "lattice size (s|l)")
("amplitude,a", po::value<double>()->default_value(1),
"amplitude multiplicator")
;
settings.windSpeed = vm["windspeed"].as<double>();
- if (vm["size"].as<std::string>() == "large") {
+ if (vm["size"].as<char>() == 'l') {
settings.latticeSize = 256;
settings.latticeExtend = 20;
settings.amplitudeFactor = vm["amplitude"].as<double>() * 0.00000004;