Paramotopy
parallel parameter homotopy through bertini
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
step2_funcs.cpp
Go to the documentation of this file.
1 #include "step2_funcs.hpp"
2 
3 
4 
5 void parse_input_file_bertini(unsigned int & currentSeed, int & MPType){
6  int trackType, genType, userHom, sharpenOnly, needToDiff, remove_temp, useParallelDiff;
7  parse_input(const_cast<char *>("input"), &trackType, &MPType, &genType, &userHom, &currentSeed, &sharpenOnly, &needToDiff, &remove_temp, useParallelDiff, 0, 1, 0);
8 }
9 
10 
11 
12 void run_zero_dim_main(int MPType, unsigned int currentSeed){
13  zero_dim_main(MPType, (double) 0, currentSeed, const_cast<char *>("start"), 0,1,0);
14 }
15 
16 
17 
18 
19 
20 
21 
22 //creates a string containing the file for step2 input file. note that the specific points at which we solve are written to the num.out file by each worker, so this is only written once. then the associated .out files are created in a step2.1 solve, and left intact for the step2.2 solves, of which there are many.
23 std::string WriteStep2(std::vector<std::pair<double, double> > CurrentValues,
24  ProgSettings paramotopy_settings,
25  runinfo paramotopy_info)
26 {
27 
28 
29  std::stringstream inputstringstream;
30  inputstringstream << paramotopy_settings.WriteConfigStepTwo();
31 
32  inputstringstream << paramotopy_info.WriteInputStepTwo(CurrentValues,
33  paramotopy_settings.settings["mode"]["standardstep2"].intvalue == 1);
34 
35  return inputstringstream.str();
36 }
37 
38 
39 //creates a string containing the file for step2 input file. note that the specific points at which we solve are written to the num.out file by each worker, so this is only written once. then the associated .out files are created in a step2.1 solve, and left intact for the step2.2 solves, of which there are many.
40 std::string WriteFailStep2(std::vector<std::pair<double, double> > CurrentValues,
41  ProgSettings paramotopy_settings,
42  runinfo paramotopy_info){
43 
44  bool standardstep2;
45  int sstep2 = paramotopy_settings.settings["mode"]["standardstep2"].intvalue;
46  if (sstep2 == 0){
47  standardstep2 = false;
48  }
49  else{
50  standardstep2 = true;
51  }
52 
53 
54  std::stringstream inputstringstream;
55 
56  inputstringstream << paramotopy_settings.WriteConfigFail();
57 
58  inputstringstream << paramotopy_info.WriteInputStepTwo(CurrentValues, standardstep2);
59 
60  return inputstringstream.str();
61 }
62 
63 
64 
65 
66 
67 
68 
69 
std::string WriteConfigFail()
void run_zero_dim_main(int MPType, unsigned int currentSeed)
Definition: step2_funcs.cpp:12
std::string WriteInputStepTwo(std::vector< std::pair< double, double > > tmprandomvalues, bool standardstep2)
Definition: runinfo.cpp:193
std::string WriteStep2(std::vector< std::pair< double, double > > CurrentValues, ProgSettings paramotopy_settings, runinfo paramotopy_info)
Definition: step2_funcs.cpp:23
std::string WriteFailStep2(std::vector< std::pair< double, double > > CurrentValues, ProgSettings paramotopy_settings, runinfo paramotopy_info)
Definition: step2_funcs.cpp:40
categorymap settings
A class that stores the general program settings of Paramotopy.
A class for the input file parser.
Definition: runinfo.hpp:41
std::string WriteConfigStepTwo()
void parse_input_file_bertini(unsigned int &currentSeed, int &MPType)
Definition: step2_funcs.cpp:5