Paramotopy
parallel parameter homotopy through bertini
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
step2_funcs.hpp
Go to the documentation of this file.
1 #include <string>
2 #include <fstream>
3 #include <vector>
4 #include <map>
5 #include <sstream>
6 
7 
8 #include <sys/types.h>
9 #include <sys/stat.h>
10 #include <unistd.h>
11 #include <stdexcept>
12 
13 
14 
15 #include <stdlib.h>
16 #include <errno.h>
17 #include <sys/wait.h>
18 #include <cmath>
19 
20 
21 
22 #ifndef __STEPTWO_H__
23 #define __STEPTWO_H__
24 
25 #include "step1_funcs.hpp"
26 
27 #include <gmp.h>
28 
29 extern "C" {
30  #include "bertini.h"
31 }
32 
33 
39 void parse_input_file_bertini(unsigned int & currentSeed, int & MPType);
40 
41 
42 
48 void run_zero_dim_main(int MPType, unsigned int currentSeed);
49 
50 
51 
52 
60 void SetUpFolders(std::string base_dir,
61  int numprocs,
62  int numfilesatatime,
63  std::string templocation);
64 
71 std::string WriteStep2(std::vector<std::pair<double, double> > CValues,
72  ProgSettings paramotopy_settings,
73  runinfo paramotopy_info);
74 
81 std::string WriteFailStep2(std::vector<std::pair<double, double> > CValues,
82  ProgSettings paramotopy_settings,
83  runinfo paramotopy_info);
84 
85 
86 
87 
88 //void CallBertiniStep2(std::string param_dir);
89 
90 
98 std::string MakeTargetFilename(std::string base_dir,
99  ToSave *TheFiles,
100  int index);
101 
102 
103 //void TouchFilesToSave(ProgSettings paramotopy_settings,
104 // std::string base_dir);
105 
106 
107 
113 void SetFileCount(ProgSettings & paramotopy_settings,
114  std::string DataCollectedBaseDir);
115 
116 
117 
118 
119 #endif
std::string MakeTargetFilename(std::string base_dir, ToSave *TheFiles, int index)
Struct for indicating the names of the files to be collected.
void SetFileCount(ProgSettings &paramotopy_settings, std::string DataCollectedBaseDir)
void parse_input_file_bertini(unsigned int &currentSeed, int &MPType)
Definition: step2_funcs.cpp:5
void SetUpFolders(std::string base_dir, int numprocs, int numfilesatatime, std::string templocation)
A class that stores the general program settings of Paramotopy.
void run_zero_dim_main(int MPType, unsigned int currentSeed)
Definition: step2_funcs.cpp:12
A class for the input file parser.
Definition: runinfo.hpp:41
std::string WriteFailStep2(std::vector< std::pair< double, double > > CValues, ProgSettings paramotopy_settings, runinfo paramotopy_info)
Definition: step2_funcs.cpp:40
std::string WriteStep2(std::vector< std::pair< double, double > > CValues, ProgSettings paramotopy_settings, runinfo paramotopy_info)
Definition: step2_funcs.cpp:23