|
Paramotopy
parallel parameter homotopy through bertini
|
#include <string>#include <fstream>#include <vector>#include <map>#include <sstream>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <stdexcept>#include <stdlib.h>#include <errno.h>#include <sys/wait.h>#include <cmath>#include "step1_funcs.hpp"#include <gmp.h>#include "bertini.h"Go to the source code of this file.
Functions | |
| void | parse_input_file_bertini (unsigned int ¤tSeed, int &MPType) |
| void | run_zero_dim_main (int MPType, unsigned int currentSeed) |
| void | SetUpFolders (std::string base_dir, int numprocs, int numfilesatatime, std::string templocation) |
| std::string | WriteStep2 (std::vector< std::pair< double, double > > CValues, ProgSettings paramotopy_settings, runinfo paramotopy_info) |
| std::string | WriteFailStep2 (std::vector< std::pair< double, double > > CValues, ProgSettings paramotopy_settings, runinfo paramotopy_info) |
| std::string | MakeTargetFilename (std::string base_dir, ToSave *TheFiles, int index) |
| void | SetFileCount (ProgSettings ¶motopy_settings, std::string DataCollectedBaseDir) |
| std::string MakeTargetFilename | ( | std::string | base_dir, |
| ToSave * | TheFiles, | ||
| int | index | ||
| ) |
makes the appropriate output file name
| base_dir | the string of style bfiles_filename/run0/ |
| TheFiles | struct containing the names of the data files to be saved. |
| index | the number of the filename to make |
| void parse_input_file_bertini | ( | unsigned int & | currentSeed, |
| int & | MPType | ||
| ) |
a wrapper around the parse_input() function from the bertini library.
Definition at line 5 of file step2_funcs.cpp.
Referenced by slave_process::LoopBasic(), and slave_process::LoopSearch().
| void run_zero_dim_main | ( | int | MPType, |
| unsigned int | currentSeed | ||
| ) |
a wrapper around the zero_dim_main() function from the bertini library.
| MPType | an integer indicating the mptype. |
| currentSeed | the current random seed. |
Definition at line 12 of file step2_funcs.cpp.
Referenced by slave_process::LoopBasic(), and slave_process::LoopSearch().
| void SetFileCount | ( | ProgSettings & | paramotopy_settings, |
| std::string | DataCollectedBaseDir | ||
| ) |
makes the appropriate output file name
| paramotopy_settings | the bertini and paramotopy settings |
| DataCollectedBaseDir | the name of the bfiles_filename/run0/step2/DataCollected location |
| void SetUpFolders | ( | std::string | base_dir, |
| int | numprocs, | ||
| int | numfilesatatime, | ||
| std::string | templocation | ||
| ) |
sets up the various data folders for the run. also sets up the text file which has the list of folders containing data
| base_dir | the directory in which to do the setup |
| numprocs | the number of processors being used |
| numfilesatatime | the number of parameter points to hand out at each distribution |
| templocation | the location of the temporary files, in which each worker will produce the data by running bertini |
| std::string WriteFailStep2 | ( | std::vector< std::pair< double, double > > | CValues, |
| ProgSettings | paramotopy_settings, | ||
| runinfo | paramotopy_info | ||
| ) |
creates the bertini input file for step2 IN FAILURE ANALYSIS MODE, and writes it to a string.
| CValues | current parameter values. |
| paramotopy_settings | the bertini and paramotopy settings |
| paramotopy_info | the parsed input file. |
Definition at line 40 of file step2_funcs.cpp.
References ProgSettings::settings, ProgSettings::WriteConfigFail(), and runinfo::WriteInputStepTwo().
Referenced by failinfo::new_step_one(), and master_process::SendInput().
| std::string WriteStep2 | ( | std::vector< std::pair< double, double > > | CValues, |
| ProgSettings | paramotopy_settings, | ||
| runinfo | paramotopy_info | ||
| ) |
creates the bertini input file for step2, and writes it to a string.
| CValues | current parameter values. |
| paramotopy_settings | the bertini and paramotopy settings |
| paramotopy_info | the parsed input file. |
Definition at line 23 of file step2_funcs.cpp.
References ProgSettings::settings, ProgSettings::WriteConfigStepTwo(), and runinfo::WriteInputStepTwo().
Referenced by master_process::SendInput().
1.8.8