int main(int argc, char* argv[]) { namespace po = boost::program_options; po::options_description desc_commandline; desc_commandline.add_options() ("results", "print generated results (default: false)") ("nx", po::value<boost::uint64_t>()->default_value(10), "Local x dimension (of each partition)") ("nt", po::value<boost::uint64_t>()->default_value(45), "Number of time steps") ("np", po::value<boost::uint64_t>()->default_value(10), "Number of partitions") ("k", po::value<double>(&k)->default_value(0.5), "Heat transfer coefficient (default: 0.5)") ("dt", po::value<double>(&dt)->default_value(1.0), "Timestep unit (default: 1.0[s])") ("dx", po::value<double>(&dx)->default_value(1.0), "Local x dimension") ( "no-header", "do not print out the csv header row") ; po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc_commandline), vm); po::notify(vm); return hpx_main(vm); }
/////////////////////////////////////////////////////////////////////////////// // Forwarding of hpx_main, if necessary. This has to be in a separate // translation unit to ensure the linker can pick or ignore this function, // depending on whether the main executable defines this symbol or not. int hpx_main(boost::program_options::variables_map&) { return hpx_main(); }