10 #include <boost/program_options.hpp>
14 namespace po = boost::program_options;
27 po::options_description desc(
"MT inversion options");
28 desc.add_options()(
"mtinputdata", po::value<std::string>(&
mtinputdata),
29 "The name of the MT data file")(
"mtfit", po::value<std::string>(
30 &
mtfit)->default_value(
"berd"),
"The type of data to fit")(
32 po::value<std::string>(&
mode)->default_value(
"xy"),
33 "The mode xy or yx to fit")(
34 "mtfitexponent", po::value<int>(&
mtfitexponent)->default_value(2),
35 "The exponent in the misfit functional")(
"tensorerror",
36 po::value<double>(&
tensorerror)->default_value(0.02),
37 "The error floor for fitting tensor data")(
38 "reserror", po::value<double>(&
reserror)->default_value(0.02),
39 "The error floor for fitting apperent resistivity data")(
40 "phaseerror", po::value<double>(&
phaseerror)->default_value(0.02),
41 "The error floor for fitting phase data");
44 po::store(po::parse_config_file(instream, desc,
true), vm);
void GetData(std::ifstream &instream)