GPLIB++
RecInvConf.cpp
Go to the documentation of this file.
1 //============================================================================
2 // Name : RecInvConf.cpp
3 // Author : Apr 7, 2010
4 // Version :
5 // Copyright : 2010, mmoorkamp
6 //============================================================================
7 
8 
9 #include "RecInvConf.h"
10 #include <FatalException.h>
11 #include <boost/program_options.hpp>
12 
13 namespace gplib
14  {
15  namespace po = boost::program_options;
17  {
18  }
19 
21  {
22  }
23 
24 
25  void RecInvConf::GetData(std::ifstream &instream)
26  {
27  po::options_description desc("Receiver function inversion options");
28  desc.add_options()("recinfofile", po::value<std::string>(&recinfofile),
29  "The file containing information about the receiver function data")(
30  "recmethod", po::value<std::string>(&recmethod)->default_value("iterdecon"),
31  "The method to calculate the receiver function, iterdecon oder specdiv")(
32  "normrec", po::value<bool>(&normrec)->default_value(false),
33  "The receiver functions have been normalized ")("recfitexponent",
34  po::value<int>(&recfitexponent)->default_value(2),
35  "The exponent for the misfit functional")("starttime", po::value<
36  double>(&starttime)->default_value(-1.0),
37  "The start time for the part of the RF considered in the inversion in s")(
38  "endtime", po::value<double>(&endtime)->default_value(-1.0),
39  "The end time for the part of the RF considered in the iversion in s");
40 
41  po::variables_map vm;
42  po::store(po::parse_config_file(instream, desc, true), vm);
43  po::notify(vm);
44  }
45 
46  }
std::string recmethod
Definition: RecInvConf.h:22
void GetData(std::ifstream &instream)
Definition: RecInvConf.cpp:25
std::string recinfofile
Definition: RecInvConf.h:21
virtual ~RecInvConf()
Definition: RecInvConf.cpp:20