Paramotopy
parallel parameter homotopy through bertini
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
step2readandwrite.hpp
Go to the documentation of this file.
1 #include <mpi.h>
2 #include "step1_funcs.hpp"
3 #include "mtrand.hpp"
4 #include "random.hpp"
5 #include <sys/wait.h>
6 #include <sys/stat.h>
7 #include <sys/types.h>
8 #include <vector>
9 #include <map>
10 #include <iostream>
11 #include <string>
12 #include <sstream>
13 #include <fstream>
14 #include <stdio.h>
15 #include <stdlib.h>
16 #include <iomanip>
17 
18 
19 
20 #ifndef __STEP2READANDWRITE_H__
21 #define __STEP2READANDWRITE_H__
22 
23 
30 extern "C" {
31  void computeNumDenom(char **numer, char **denom, char *s);
32 }
33 
34 #include "step2_funcs.hpp"
35 #include "timing.hpp"
36 
37 #include <gmp.h>
38 
39 extern "C" {
40 #include "bertini.h"
41 }
42 
43 
44 
54 void getTermination_OpenMC(std::ifstream & mc_in_stream,std::ofstream & mc_out_stream,int & terminationint,std::vector< int > & KVector,runinfo & paramotopy_info,ProgSettings & paramotopy_settings);
55 
56 
57 
64 int GetStart(boost::filesystem::path dir,
65  std::string & start,
66  std::string startfilename);
67 
74 int GetLastNumSent(boost::filesystem::path base_dir,
75  std::vector< int > & lastnumsent,
76  int numprocs);
77 
78 
79 
80 
91 void ReadDotOut(std::vector<std::string> & Numoutvector,
92  std::vector<std::string> & arroutvector,
93  std::vector<std::string> & degoutvector,
94  std::vector<std::string> & namesoutvector,
95  std::vector<std::string> & configvector,
96  std::vector<std::string> & funcinputvector,
97  std::vector<std::string> & preproc_datavector);
98 
99 
100 
101 
102 
112 void WriteDotOut(std::vector<std::string> & arroutvector,
113  std::vector<std::string> & degoutvector,
114  std::vector<std::string> & namesoutvector,
115  std::vector<std::string> & configvector,
116  std::vector<std::string> & funcinputvector,
117  std::vector<std::string> & preproc_datavector);
118 
119 
120 
129 void WriteNumDotOut(std::vector<std::string> Numoutvector,
130  std::vector<std::pair<double,double> > AllParams,
131  int numparam,
132  bool standardstep2);
133 
140 int GetMcNumLines(boost::filesystem::path base_dir, int numparam);
141 
142 
143 #endif
void WriteNumDotOut(std::vector< std::string > Numoutvector, std::vector< std::pair< double, double > > AllParams, int numparam, bool standardstep2)
void ReadDotOut(std::vector< std::string > &Numoutvector, std::vector< std::string > &arroutvector, std::vector< std::string > &degoutvector, std::vector< std::string > &namesoutvector, std::vector< std::string > &configvector, std::vector< std::string > &funcinputvector, std::vector< std::string > &preproc_datavector)
int GetLastNumSent(boost::filesystem::path base_dir, std::vector< int > &lastnumsent, int numprocs)
int GetMcNumLines(boost::filesystem::path base_dir, int numparam)
void computeNumDenom(char **numer, char **denom, char *s)
void getTermination_OpenMC(std::ifstream &mc_in_stream, std::ofstream &mc_out_stream, int &terminationint, std::vector< int > &KVector, runinfo &paramotopy_info, ProgSettings &paramotopy_settings)
A class that stores the general program settings of Paramotopy.
A class for the input file parser.
Definition: runinfo.hpp:41
void WriteDotOut(std::vector< std::string > &arroutvector, std::vector< std::string > &degoutvector, std::vector< std::string > &namesoutvector, std::vector< std::string > &configvector, std::vector< std::string > &funcinputvector, std::vector< std::string > &preproc_datavector)
int GetStart(boost::filesystem::path dir, std::string &start, std::string startfilename)