10 #include <sys/types.h>
41 int main(
int argC,
char *args[]){
46 std::string homedir = getenv(
"HOME");
48 std::string path_to_inputfile;
50 std::ifstream finconfig;
56 std::vector< std::pair< std::pair< double, double >, std::pair< double, double > > > RandomRanges;
61 std::ofstream foutdir;
65 std::string dirfilename;
80 std::string suppliedfilename;
85 std::stringstream commandss;
88 suppliedfilename = commandss.str();
97 std::string prefdir = homedir;
98 prefdir.append(
"/.paramotopy");
99 boost::filesystem::create_directories(prefdir);
104 paramotopy_settings.
load();
113 paramotopy_info.
AutoScanData(paramotopy_settings.
settings[
"files"][
"previousdatamethod"].intvalue);
118 std::cout <<
"made new random values" << std::endl;
136 std::cout <<
"\t*** * * * * * * * * * * * * ***\n"
137 <<
"\t***this run's step2 appears finished***\n"
138 <<
"\t*** * * * * * * * * * * * * ***\n";
145 while(currentChoice!=
Quit){
152 currentChoice =
Input;
158 paramotopy_info.
AutoScanData(paramotopy_settings.
settings[
"files"][
"previousdatamethod"].intvalue);
162 std::cout <<
"made new random values" << std::endl;
170 paramotopy_settings.
load();
180 boost::filesystem::create_directories(paramotopy_info.
base_dir);
182 std::cout <<
"file directory is now " << paramotopy_info.
base_dir <<
"\n";
187 std::cout <<
"made new random values" << std::endl;
197 std::cout <<
"unprogrammed\n";
253 std::cout <<
"\n\n***Step2***\n\n";
255 currentChoice =
Step2;
272 fail_info.
MainMenu(paramotopy_settings,paramotopy_info);
288 std::cout <<
"Quitting\n\n";
int main(int argC, char *args[])
This is the main function for the paramotopy program. It acts as the user interface, and provides * the commands for calling bertini for step1, * the wrapper around the step2 program, * failed path functionality, *bertini settings.
The class for performing failed path analysis.
std::vector< std::pair< double, double > > RandomValues
void WriteStep1(ProgSettings paramotopy_settings, runinfo paramotopy_info)
boost::filesystem::path base_dir
void set_name(boost::filesystem::path newfilename)
void WriteOriginalParamotopy(boost::filesystem::path dir)
void DataManagementMainMenu(runinfo ¶motopy_info)
void MainMenu(ProgSettings ¶motopy_settings, runinfo ¶motopy_info)
void CallBertiniStep1(ProgSettings paramotopy_settings, runinfo paramotopy_info)
void load(boost::filesystem::path pFilename)
void BertiniSplashScreen(std::string bertinilocation)
boost::filesystem::path inputfilename
boost::filesystem::path location
void ParamotopySplashScreen()
void AutoScanData(const int preferred_behaviour)
std::vector< std::pair< double, double > > MakeRandomValues(int garbageint)
A class that stores the general program settings of Paramotopy.
boost::filesystem::path make_settings_name(boost::filesystem::path basename)
void CopyUserDefinedFile()
A class for the input file parser.