Paramotopy
parallel parameter homotopy through bertini
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
runinfo Class Reference

A class for the input file parser. More...

#include <runinfo.hpp>

Collaboration diagram for runinfo:
[legend]

Public Member Functions

 runinfo ()
 
std::string WriteInputStepOne (ProgSettings paramotopy_settings)
 
std::string WriteInputStepTwo (std::vector< std::pair< double, double > > tmprandomvalues, bool standardstep2)
 
void GetOriginalParamotopy ()
 
void GetInputFileName ()
 
void GetInputFileName (boost::filesystem::path suppliedfilename)
 
void make_base_dir_name ()
 
void mkdirstep1 ()
 
void clear ()
 
void ParseData ()
 
void ParseData (boost::filesystem::path dir)
 
void ParseDataGuts (std::ifstream &fin)
 
void ReadCustomLines (std::ifstream &fin)
 
void RandomMenu ()
 
void SaveRandom ()
 
void LoadRandom ()
 
void SetRandom ()
 
bool GetPrevRandom ()
 
void SetLocation ()
 
bool test_if_finished ()
 
void DisplayAllValues ()
 
void CopyUserDefinedFile ()
 
std::vector< std::pair< double,
double > > 
MakeRandomValues (int garbageint)
 
void GetRandomValues ()
 
void WriteOriginalParamotopy (boost::filesystem::path dir)
 
void WriteModifiedParamotopy (boost::filesystem::path dir, int iteration)
 
void WriteRandomValues ()
 
void SetBaseDirZero ()
 
void SetBaseDirManual (std::vector< boost::filesystem::path > found_runs)
 
void SetBaseDirMostRecent (std::vector< boost::filesystem::path > found_runs)
 
void SetBaseDirNew (std::vector< boost::filesystem::path > found_runs)
 
void AutoScanData (const int preferred_behaviour)
 
void ScanData ()
 
void save ()
 
void load (boost::filesystem::path filename)
 
void get_run_xml (boost::filesystem::path filename, int &run, time_t &wheninitiated, time_t &whenupdated)
 
void UpdateAndSave ()
 
void MakeRandomValues ()
 
bool CheckRunStepOne ()
 
void GatherData ()
 
boost::filesystem::path GetAvailableRuns ()
 
void CollectSpecificFiles (boost::filesystem::path file_to_gather, std::vector< boost::filesystem::path > folders_with_data, boost::filesystem::path run_to_analyze, int parser_index, bool mergefailed)
 
std::vector
< boost::filesystem::path > 
GetFoldersForData (boost::filesystem::path dir)
 
void IncrementOutputFolder (boost::filesystem::path &output_folder_name, boost::filesystem::path base_output_folder_name, int &output_folder_index)
 
void MergeFolders (std::string file_to_gather, std::string left_folder, std::string right_folder, std::string output_folder_name, int parser_index)
 
void finalize_run_to_file (boost::filesystem::path file_to_gather, boost::filesystem::path source_folder, boost::filesystem::path base_output_folder_name, int parser_index, bool mergefailed)
 
void rest_of_files (std::ifstream &datafile, std::string &output_buffer, std::ofstream &outputfile, std::vector< boost::filesystem::path > filelist, int file_index, int parser_index)
 
bool endoffile_stuff (std::ifstream &datafile, int &file_index, std::vector< boost::filesystem::path > filelist)
 
bool ReadPoint (std::ifstream &fin, int &next_index, std::string &data, int parser_index)
 function for parsing ***_solutions files, as output from bertini. More...
 
std::string ParseSolutionsFile (std::ifstream &fin)
 
std::vector< std::vector
< std::pair< std::string,
std::string > > > 
ParseSolutionsFile_ActualSolutions (std::ifstream &fin)
 
std::string ParseFailedPaths (std::ifstream &fin)
 function for parsing the failed_paths file (just one instance of it) More...
 
void PrintRandom ()
 

Public Attributes

int numfunct
 
int numvariables
 
int numvargroup
 
int numparam
 
int numconsts
 
boost::filesystem::path location
 
boost::filesystem::path fundamental_dir
 
boost::filesystem::path base_dir
 
int run_number
 
time_t initiated
 
time_t updated
 
std::string paramotopy_file
 
boost::filesystem::path inputfilename
 
boost::filesystem::path prefix
 
int steptwomode
 
std::vector< std::string > Functions
 
std::vector< std::string > VarGroups
 
std::vector< std::string > Parameters
 
std::vector< std::string > ParameterNames
 
std::vector< std::string > Constants
 
std::vector< std::string > ConstantNames
 
std::string CustomLines
 
std::vector< std::vector
< std::pair< double, double > > > 
Values
 
std::vector< std::pair< double,
double > > 
BoundsLeft
 
std::vector< std::pair< double,
double > > 
BoundsRight
 
bool userdefined
 
std::string mcfname
 
std::vector< int > NumMeshPoints
 
std::vector< std::pair< double,
double > > 
RandomValues
 
bool made_new_folder
 

Private Member Functions

void GetNumVariables ()
 
void ReadSizes (std::ifstream &fin)
 
void ReadParameters (std::ifstream &fin)
 
void ReadFunctions (std::ifstream &fin)
 
void ReadVarGroups (std::ifstream &fin)
 
void ReadConstants (std::ifstream &fin)
 
void ReadConstantStrings (std::ifstream &fin)
 
void MakeParameterNames ()
 
void MakeVariableGroups (std::stringstream &fout, ProgSettings paramotopy_settings)
 
void MakeDeclareConstants (std::stringstream &fout)
 
void MakeConstants (std::stringstream &fout)
 
void MakeConstantsStep2 (std::vector< std::pair< double, double > > CurrentValues, std::stringstream &inputfilestream, bool standardstep2)
 
void MakeCustomLines (std::stringstream &inputfilestream)
 
void MakeDeclareFunctions (std::stringstream &inputstringstream)
 
void MakeFunctions (std::stringstream &inputstringstream)
 
void MakeRandomValues (std::vector< std::pair< std::pair< double, double >, std::pair< double, double > > > RandomRanges)
 
void MakeValues (std::ifstream &fin)
 
void MakeValues ()
 
void MakeBounds ()
 
void SetDataFirst ()
 
void SetDataMostRecent ()
 
void SetDataInteractive ()
 
void WriteDataDateStarted ()
 
void DeleteRunFolder ()
 

Detailed Description

A class for the input file parser.

The input file parser.

Definition at line 41 of file runinfo.hpp.

Constructor & Destructor Documentation

runinfo::runinfo ( )
inline

The default paramotopy constructor.

Definition at line 153 of file runinfo.hpp.

Member Function Documentation

void runinfo::AutoScanData ( const int  preferred_behaviour)

Scan what runs have been done. If none, create a a new folder. .

Parameters
preferred_behaviour- Determine what type of behaviour to use. 1 for most recent. 2 for new. 3 for manual.

Definition at line 1481 of file runinfo.cpp.

References base_dir, FindDirectories(), fundamental_dir, save(), SetBaseDirManual(), SetBaseDirMostRecent(), SetBaseDirNew(), and SetBaseDirZero().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

bool runinfo::CheckRunStepOne ( )

Check if step 1 has been run or not.

Definition at line 6 of file runinfo.cpp.

References get_int_choice(), location, and mkdirstep1().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::clear ( )
inline

Clear all of the vectors that hold information for the current paramotopy run.

Definition at line 188 of file runinfo.hpp.

void runinfo::CollectSpecificFiles ( boost::filesystem::path  file_to_gather,
std::vector< boost::filesystem::path >  folders_with_data,
boost::filesystem::path  run_to_analyze,
int  parser_index,
bool  mergefailed 
)

Not used in runinfo.cpp ?

void runinfo::CopyUserDefinedFile ( )

Copy the user defined file to the run folder.

Definition at line 579 of file runinfo.cpp.

References base_dir, mcfname, and userdefined.

Referenced by main(), and steptwo_case().

Here is the caller graph for this function:

void runinfo::DeleteRunFolder ( )
private

Delete the run folder.

void runinfo::DisplayAllValues ( )

Display the random values.

Definition at line 1201 of file runinfo.cpp.

References base_dir, ConstantNames, Constants, CustomLines, Functions, inputfilename, mcfname, numconsts, numfunct, numparam, numvargroup, numvariables, ParameterNames, Parameters, userdefined, and VarGroups.

Referenced by ParseData().

Here is the caller graph for this function:

bool runinfo::endoffile_stuff ( std::ifstream &  datafile,
int &  file_index,
std::vector< boost::filesystem::path >  filelist 
)

Not used in runinfo.cpp

void runinfo::finalize_run_to_file ( boost::filesystem::path  file_to_gather,
boost::filesystem::path  source_folder,
boost::filesystem::path  base_output_folder_name,
int  parser_index,
bool  mergefailed 
)

Not used in runinfo.cpp

void runinfo::GatherData ( )

Not used in runinfo.cpp ?

void runinfo::get_run_xml ( boost::filesystem::path  filename,
int &  run,
time_t &  wheninitiated,
time_t &  whenupdated 
)

Get the xml information of the current run.

Parameters
filename- The xml file name.
run- The run number.
wheninitiated- Time the run began.
whenupdated- Time of the last update of the run.

Definition at line 1600 of file runinfo.cpp.

Referenced by load(), SetBaseDirManual(), SetBaseDirMostRecent(), and SetBaseDirNew().

Here is the caller graph for this function:

boost::filesystem::path runinfo::GetAvailableRuns ( )

Not used in runinfo.cpp ?

std::vector< boost::filesystem::path > runinfo::GetFoldersForData ( boost::filesystem::path  dir)

Not used in runinfo.cpp ?

void runinfo::GetInputFileName ( )

Get the name of the paramotopy input file.

Definition at line 299 of file runinfo.cpp.

References getAlphaNumeric_WithSpaces(), inputfilename, and make_base_dir_name().

Referenced by GetInputFileName(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::GetInputFileName ( boost::filesystem::path  suppliedfilename)

Get the name of the paramotopy input file with the supplied filename.

Parameters
suppliedfilename- The supplied filename.

Definition at line 333 of file runinfo.cpp.

References GetInputFileName(), inputfilename, and make_base_dir_name().

Here is the call graph for this function:

void runinfo::GetNumVariables ( )
private

Get the number of variables.

Definition at line 894 of file runinfo.cpp.

References numvargroup, numvariables, and VarGroups.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::GetOriginalParamotopy ( )

Get the original paramotopy input file.

Definition at line 44 of file runinfo.cpp.

References inputfilename, and paramotopy_file.

Referenced by ParseData().

Here is the caller graph for this function:

bool runinfo::GetPrevRandom ( )

Get the previous random values.

Definition at line 451 of file runinfo.cpp.

References base_dir, numparam, and RandomValues.

Referenced by main(), failinfo::MainMenu(), failinfo::PerformAnalysis(), and failinfo::StartOver().

Here is the caller graph for this function:

void runinfo::GetRandomValues ( )

Reads in the random values to be used in this solve.

Parameters
base_dirDirectory in which to look for the random values file.
RandomValuesMutable vector in which to store the random values read in by this function.

Definition at line 812 of file runinfo.cpp.

References location, and RandomValues.

Referenced by main().

Here is the caller graph for this function:

void runinfo::IncrementOutputFolder ( boost::filesystem::path &  output_folder_name,
boost::filesystem::path  base_output_folder_name,
int &  output_folder_index 
)

Not used in runinfo.cpp ?

void runinfo::load ( boost::filesystem::path  filename)

Load the paramotopy input file.

Parameters
filename- The filename to load.

Definition at line 1586 of file runinfo.cpp.

References get_run_xml(), initiated, run_number, and updated.

Referenced by SetBaseDirManual(), and SetBaseDirMostRecent().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::LoadRandom ( )

Load the random values.

Definition at line 392 of file runinfo.cpp.

References getAlphaNumeric_WithSpaces(), ParameterNames, PrintRandom(), and RandomValues.

Referenced by RandomMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::make_base_dir_name ( )

Make the base directory name.

Definition at line 139 of file runinfo.cpp.

References base_dir, fundamental_dir, inputfilename, and prefix.

Referenced by GetInputFileName(), ParseData(), and ParseDataGuts().

Here is the caller graph for this function:

void runinfo::MakeBounds ( )
private

Set the right and left bounds for the interval in question.

Definition at line 1100 of file runinfo.cpp.

References BoundsLeft, BoundsRight, Parameters, and userdefined.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::MakeConstants ( std::stringstream &  fout)
private

Place the definition of the constants onto the stringstream.

Parameters
fout- The stringstream used to place everything into the bertini input file.

Definition at line 983 of file runinfo.cpp.

References ConstantNames, ParameterNames, and RandomValues.

Referenced by WriteInputStepOne().

Here is the caller graph for this function:

void runinfo::MakeConstantsStep2 ( std::vector< std::pair< double, double > >  CurrentValues,
std::stringstream &  inputfilestream,
bool  standardstep2 
)
private

Make the definition of the constants and add to the stringstream.

Parameters
CurrentValues- The values that are the constants.
inputfilestream- The stringstream used to place everything into the bertini step 2 input file.

Definition at line 1009 of file runinfo.cpp.

References ConstantNames, ParameterNames, and RandomValues.

Referenced by WriteInputStepTwo().

Here is the caller graph for this function:

void runinfo::MakeCustomLines ( std::stringstream &  inputfilestream)
private

Make custom lines to add to the stringstream.

Parameters
inputstringstream- The stringstream used to place everything into the bertini input file.

Definition at line 1001 of file runinfo.cpp.

References CustomLines.

Referenced by WriteInputStepOne(), and WriteInputStepTwo().

Here is the caller graph for this function:

void runinfo::MakeDeclareConstants ( std::stringstream &  fout)
private

Place the declaration of the constants onto the stringstream.

Parameters
fout- The stringstream used to place everything into the bertini input file.

Definition at line 952 of file runinfo.cpp.

References Constants, and ParameterNames.

Referenced by WriteInputStepOne().

Here is the caller graph for this function:

void runinfo::MakeDeclareFunctions ( std::stringstream &  inputstringstream)
private

Place the declaration of functions on the stringstream.

Parameters
inputstringstream- The stringstream used to place everything into the bertini input file.

Definition at line 968 of file runinfo.cpp.

References numfunct.

Referenced by WriteInputStepOne(), and WriteInputStepTwo().

Here is the caller graph for this function:

void runinfo::MakeFunctions ( std::stringstream &  inputstringstream)
private

Place the functions on the stringstream.

Parameters
inputstringstream- The stringstream used to place everything into the bertini input file.

Definition at line 913 of file runinfo.cpp.

References Functions, and numfunct.

Referenced by WriteInputStepOne(), and WriteInputStepTwo().

Here is the caller graph for this function:

void runinfo::MakeParameterNames ( )
private

Make the names parameters to be used in the bertini input file.

Definition at line 1185 of file runinfo.cpp.

References numparam, ParameterNames, and Parameters.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

std::vector< std::pair< double, double > > runinfo::MakeRandomValues ( int  garbageint)

Make the random values.

Definition at line 788 of file runinfo.cpp.

References numparam.

Referenced by main(), failinfo::new_step_one(), and master_process::SendInput().

Here is the caller graph for this function:

void runinfo::MakeRandomValues ( )

Make the random values.

Definition at line 750 of file runinfo.cpp.

References numparam, and RandomValues.

Referenced by ParseData(), and SetRandom().

Here is the caller graph for this function:

void runinfo::MakeRandomValues ( std::vector< std::pair< std::pair< double, double >, std::pair< double, double > > >  RandomRanges)
private

Make the random values for the step 1 run.

Parameters
RandomRanges- The range in which the random values can be chosen for each parameter.

Definition at line 764 of file runinfo.cpp.

References RandomValues.

void runinfo::MakeValues ( std::ifstream &  fin)
private

Make the parameter values for the step 2 runs.

Parameters
fin- The input filestream from which the values can be pulled from next.

Definition at line 1070 of file runinfo.cpp.

References NumMeshPoints, numparam, and Values.

void runinfo::MakeValues ( )
private

Make the parameter values for the step 2 runs.

Definition at line 1135 of file runinfo.cpp.

References NumMeshPoints, Parameters, and Values.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::MakeVariableGroups ( std::stringstream &  fout,
ProgSettings  paramotopy_settings 
)
private

Define the variable groups to be used in the bertini input file.

Parameters
fout- The stringstream used to place everything into the bertini input file.
paramotopy_settings- The paramotopy program settings.

Definition at line 927 of file runinfo.cpp.

References numvargroup, ProgSettings::settings, and VarGroups.

Referenced by WriteInputStepOne().

Here is the caller graph for this function:

void runinfo::MergeFolders ( std::string  file_to_gather,
std::string  left_folder,
std::string  right_folder,
std::string  output_folder_name,
int  parser_index 
)

Not used in runinfo.cpp

void runinfo::mkdirstep1 ( )
inline

Make the step 1 directory.

Definition at line 180 of file runinfo.hpp.

References base_dir.

Referenced by CheckRunStepOne(), and main().

Here is the caller graph for this function:

void runinfo::ParseData ( )

Parse the paramotopy input file that is stored in memory.

Definition at line 636 of file runinfo.cpp.

References DisplayAllValues(), GetOriginalParamotopy(), inputfilename, make_base_dir_name(), and ParseDataGuts().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::ParseData ( boost::filesystem::path  dir)

Parse data during the step2 run.

Parameters
dir- the base directory in comparison to the directory paramotopy was initially called.

Definition at line 611 of file runinfo.cpp.

References make_base_dir_name(), MakeRandomValues(), and ParseDataGuts().

Here is the call graph for this function:

void runinfo::ParseDataGuts ( std::ifstream &  fin)

Parse the paramotopy input file and store values into memory.

Parameters
fin- The input filestream that contains the paramotopy input file.

Definition at line 656 of file runinfo.cpp.

References GetNumVariables(), make_base_dir_name(), MakeBounds(), MakeParameterNames(), MakeValues(), mcfname, numconsts, prefix, ReadConstants(), ReadConstantStrings(), ReadCustomLines(), ReadFunctions(), ReadParameters(), ReadSizes(), ReadVarGroups(), and userdefined.

Referenced by ParseData().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string runinfo::ParseFailedPaths ( std::ifstream &  fin)

function for parsing the failed_paths file (just one instance of it)

For parsing the failed_paths file. This function gets called repeatedly to see if any point has failed paths (each point has one failed_paths file).

Parameters
fin- The inputfile stream of the failed_paths file.
std::string runinfo::ParseSolutionsFile ( std::ifstream &  fin)

Not used in runinfo.cpp

std::vector< std::vector < std::pair< std::string, std::string > > > runinfo::ParseSolutionsFile_ActualSolutions ( std::ifstream &  fin)

Not used in runinfo.cpp

void runinfo::PrintRandom ( )

Print the random values.

Definition at line 567 of file runinfo.cpp.

References ParameterNames, and RandomValues.

Referenced by LoadRandom(), and SetRandom().

Here is the caller graph for this function:

void runinfo::RandomMenu ( )
inline

Display the random value menu.

Definition at line 221 of file runinfo.hpp.

References get_int_choice(), LoadRandom(), SaveRandom(), and SetRandom().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::ReadConstants ( std::ifstream &  fin)
private

Read the number of constants in the paramotopy input file.

Parameters
fin- The input filestream of the paramotopy input file.

Definition at line 873 of file runinfo.cpp.

References Constants.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::ReadConstantStrings ( std::ifstream &  fin)
private

Read the constant string from the paramotopy input file.

Parameters
fin- The input filestream of the paramotopy input file.

Definition at line 883 of file runinfo.cpp.

References ConstantNames, and numconsts.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::ReadCustomLines ( std::ifstream &  fin)

Read the custom lines in the paramotopy input file.

Parameters
fin- The input filestream of the paramotopy input file.

Definition at line 703 of file runinfo.cpp.

References CustomLines.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::ReadFunctions ( std::ifstream &  fin)
private

Read the number of functions in the paramotopy input file.

Parameters
fin- The input filestream of the paramotopy input file.

Definition at line 847 of file runinfo.cpp.

References Functions, and numfunct.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::ReadParameters ( std::ifstream &  fin)
private

Read the number of parameters in the paramotopy input file.

Parameters
fin- The input filestream of the paramotopy input file.

Definition at line 738 of file runinfo.cpp.

References numparam, and Parameters.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

bool runinfo::ReadPoint ( std::ifstream &  fin,
int &  next_index,
std::string &  data,
int  parser_index 
)

function for parsing ***_solutions files, as output from bertini.

Not used in runinfo.cpp

void runinfo::ReadSizes ( std::ifstream &  fin)
private

An auxiliary function to call ReadParameters, ReadFunctions, ReadVarGroups, and ReadConstants

Parameters
fin- The input filestream of the paramotopy input file.

Definition at line 719 of file runinfo.cpp.

References numconsts, numfunct, numparam, and numvargroup.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::ReadVarGroups ( std::ifstream &  fin)
private

Read the number of variable groups in the paramotopy input file.

Parameters
fin- The input filestream of the paramotopy input file.

Definition at line 860 of file runinfo.cpp.

References numvargroup, and VarGroups.

Referenced by ParseDataGuts().

Here is the caller graph for this function:

void runinfo::rest_of_files ( std::ifstream &  datafile,
std::string &  output_buffer,
std::ofstream &  outputfile,
std::vector< boost::filesystem::path >  filelist,
int  file_index,
int  parser_index 
)

Not used in runinfo.cpp

void runinfo::save ( )

Save the run info data to the xml file.

Definition at line 1526 of file runinfo.cpp.

References base_dir, initiated, and run_number.

Referenced by AutoScanData(), ScanData(), SetBaseDirNew(), and UpdateAndSave().

Here is the caller graph for this function:

void runinfo::SaveRandom ( )

Save the random values to a file.

Definition at line 369 of file runinfo.cpp.

References getAlphaNumeric_WithSpaces(), numparam, and RandomValues.

Referenced by RandomMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::ScanData ( )

Scan if a run has been done. If not create a new run rolder.

Definition at line 1461 of file runinfo.cpp.

References base_dir, FindDirectories(), fundamental_dir, made_new_folder, save(), SetBaseDirManual(), and SetBaseDirZero().

Referenced by DataManagementMainMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::SetBaseDirManual ( std::vector< boost::filesystem::path >  found_runs)

Set the base directory to a new run folder manually.

Parameters
found_runs- The directory that contains all the runs.

Definition at line 1336 of file runinfo.cpp.

References base_dir, get_int_choice(), get_run_xml(), load(), made_new_folder, and SetBaseDirNew().

Referenced by AutoScanData(), and ScanData().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::SetBaseDirMostRecent ( std::vector< boost::filesystem::path >  found_runs)

Set the base directory of the most recent run.

Parameters
found_runs- The directory that contains all the runs.

Definition at line 1421 of file runinfo.cpp.

References base_dir, get_run_xml(), and load().

Referenced by AutoScanData().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::SetBaseDirNew ( std::vector< boost::filesystem::path >  found_runs)

Set the base directory to a new run folder.

Parameters
found_runs- The directory that contains all the runs.

Definition at line 1385 of file runinfo.cpp.

References base_dir, fundamental_dir, get_run_xml(), initiated, made_new_folder, run_number, save(), and updated.

Referenced by AutoScanData(), and SetBaseDirManual().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::SetBaseDirZero ( )

Set the topmost base directory.

Definition at line 1322 of file runinfo.cpp.

References base_dir, fundamental_dir, initiated, run_number, and updated.

Referenced by AutoScanData(), and ScanData().

Here is the caller graph for this function:

void runinfo::SetDataFirst ( )
private

?

void runinfo::SetDataInteractive ( )
private

?

void runinfo::SetDataMostRecent ( )
private

?

void runinfo::SetLocation ( )

Set the location of what exactly ?

Definition at line 163 of file runinfo.cpp.

References location.

void runinfo::SetRandom ( )

Set the random values.

Definition at line 502 of file runinfo.cpp.

References get_int_choice(), getDouble(), MakeRandomValues(), numparam, ParameterNames, PrintRandom(), and RandomValues.

Referenced by RandomMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

bool runinfo::test_if_finished ( )

Test if the run is finished.

Definition at line 1287 of file runinfo.cpp.

References base_dir.

Referenced by main(), and failinfo::MainMenu().

Here is the caller graph for this function:

void runinfo::UpdateAndSave ( )

Set the last updated time for the run and save to the xml file.

Definition at line 1315 of file runinfo.cpp.

References save(), and updated.

Referenced by main(), and failinfo::MainMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::WriteDataDateStarted ( )
private

Write the data date started folder.

std::string runinfo::WriteInputStepOne ( ProgSettings  paramotopy_settings)

Write the bertini step 1 input file.

Parameters
paramotopy_settings- The program settings to be used in the input file.

Definition at line 174 of file runinfo.cpp.

References MakeConstants(), MakeCustomLines(), MakeDeclareConstants(), MakeDeclareFunctions(), MakeFunctions(), and MakeVariableGroups().

Referenced by WriteStep1().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string runinfo::WriteInputStepTwo ( std::vector< std::pair< double, double > >  tmprandomvalues,
bool  standardstep2 
)

Write the bertini step 2 input file.

Parameters
tmprandomvalues- The starting (?) random values of the input file.

Definition at line 193 of file runinfo.cpp.

References Constants, MakeConstantsStep2(), MakeCustomLines(), MakeDeclareFunctions(), MakeFunctions(), numparam, numvargroup, ParameterNames, and VarGroups.

Referenced by WriteFailStep2(), and WriteStep2().

Here is the call graph for this function:

Here is the caller graph for this function:

void runinfo::WriteModifiedParamotopy ( boost::filesystem::path  dir,
int  iteration 
)

Write a modified paramotopy file in the corresponding iteration folder used in the path failure analysis.

Definition at line 97 of file runinfo.cpp.

References ConstantNames, Constants, CustomLines, Functions, numconsts, numfunct, numparam, numvargroup, ParameterNames, and VarGroups.

Referenced by failinfo::PerformAnalysis().

Here is the caller graph for this function:

void runinfo::WriteOriginalParamotopy ( boost::filesystem::path  dir)

Write the original paramotopy file in the bfiles_filename/run# folder.

Definition at line 70 of file runinfo.cpp.

References inputfilename, and paramotopy_file.

Referenced by main().

Here is the caller graph for this function:

void runinfo::WriteRandomValues ( )

Write the random values to a file. ? ?

Definition at line 349 of file runinfo.cpp.

References base_dir, numparam, and RandomValues.

Referenced by main().

Here is the caller graph for this function:

Member Data Documentation

boost::filesystem::path runinfo::base_dir
std::vector< std::pair<double,double> > runinfo::BoundsLeft

Definition at line 115 of file runinfo.hpp.

Referenced by MakeBounds(), and master_process::NextRandomValue().

std::vector< std::pair<double,double> > runinfo::BoundsRight

Definition at line 116 of file runinfo.hpp.

Referenced by MakeBounds(), and master_process::NextRandomValue().

std::vector<std::string> runinfo::ConstantNames

The constant names.

Definition at line 108 of file runinfo.hpp.

Referenced by DisplayAllValues(), MakeConstants(), MakeConstantsStep2(), ReadConstantStrings(), and WriteModifiedParamotopy().

std::vector<std::string> runinfo::Constants
std::string runinfo::CustomLines

The custom lines.

Definition at line 110 of file runinfo.hpp.

Referenced by DisplayAllValues(), MakeCustomLines(), ReadCustomLines(), and WriteModifiedParamotopy().

std::vector<std::string> runinfo::Functions

The functions.

Definition at line 98 of file runinfo.hpp.

Referenced by DisplayAllValues(), MakeFunctions(), ReadFunctions(), and WriteModifiedParamotopy().

boost::filesystem::path runinfo::fundamental_dir
time_t runinfo::initiated

The start time.

Definition at line 82 of file runinfo.hpp.

Referenced by load(), save(), SetBaseDirNew(), and SetBaseDirZero().

boost::filesystem::path runinfo::inputfilename
boost::filesystem::path runinfo::location
bool runinfo::made_new_folder

Flag to indicate if a new folder was created or not.

Definition at line 218 of file runinfo.hpp.

Referenced by main(), ScanData(), SetBaseDirManual(), and SetBaseDirNew().

std::string runinfo::mcfname

The monte carlo file name.

Definition at line 122 of file runinfo.hpp.

Referenced by CopyUserDefinedFile(), DisplayAllValues(), and ParseDataGuts().

int runinfo::numconsts

The number of parameters. The number of constants.

Definition at line 67 of file runinfo.hpp.

Referenced by DisplayAllValues(), ParseDataGuts(), ReadConstantStrings(), ReadSizes(), and WriteModifiedParamotopy().

int runinfo::numfunct

The number of functions.

Definition at line 58 of file runinfo.hpp.

Referenced by DisplayAllValues(), MakeDeclareFunctions(), MakeFunctions(), ReadFunctions(), ReadSizes(), and WriteModifiedParamotopy().

std::vector< int > runinfo::NumMeshPoints

If a user-defined mesh, then this stores the number of mesh points in each dimension in regards to the parameter.

Definition at line 124 of file runinfo.hpp.

Referenced by master_process::GetTerminationInt(), and MakeValues().

int runinfo::numparam
int runinfo::numvargroup

The number of variable groups.

Definition at line 62 of file runinfo.hpp.

Referenced by DisplayAllValues(), GetNumVariables(), MakeVariableGroups(), ReadSizes(), ReadVarGroups(), WriteInputStepTwo(), and WriteModifiedParamotopy().

int runinfo::numvariables
std::vector<std::string> runinfo::ParameterNames
std::vector<std::string> runinfo::Parameters

The parameters.

Definition at line 102 of file runinfo.hpp.

Referenced by DisplayAllValues(), MakeBounds(), MakeParameterNames(), MakeValues(), and ReadParameters().

std::string runinfo::paramotopy_file

A string that stores the entire paramotopy input file in memory.

Definition at line 87 of file runinfo.hpp.

Referenced by GetOriginalParamotopy(), and WriteOriginalParamotopy().

boost::filesystem::path runinfo::prefix

The directory prefix.

Definition at line 92 of file runinfo.hpp.

Referenced by make_base_dir_name(), and ParseDataGuts().

std::vector< std::pair<double,double> > runinfo::RandomValues

Random initial values. In the pair, real is first, imaginary is second.

Definition at line 130 of file runinfo.hpp.

Referenced by GetPrevRandom(), GetRandomValues(), LoadRandom(), main(), MakeConstants(), MakeConstantsStep2(), MakeRandomValues(), failinfo::new_step_one(), PrintRandom(), SaveRandom(), SetRandom(), steptwo_case(), and WriteRandomValues().

int runinfo::run_number

The run folder.

Definition at line 80 of file runinfo.hpp.

Referenced by load(), save(), SetBaseDirNew(), and SetBaseDirZero().

int runinfo::steptwomode

Indicates during the step 2 runs to do step2 or pathfailure bertini settings.

Definition at line 95 of file runinfo.hpp.

Referenced by main(), parallel_case(), and master_process::SendInput().

time_t runinfo::updated

Any time during the run program. To compare against initiated.

Definition at line 84 of file runinfo.hpp.

Referenced by load(), SetBaseDirNew(), SetBaseDirZero(), and UpdateAndSave().

bool runinfo::userdefined
std::vector< std::vector< std::pair<double,double> > > runinfo::Values

The parameter values.

Definition at line 113 of file runinfo.hpp.

Referenced by master_process::LoopBasic(), MakeValues(), and master_process::SeedBasic().

std::vector<std::string> runinfo::VarGroups

The documentation for this class was generated from the following files: