15 std::cout <<
"the serial mode has been removed. \nif serial mode is something you really really need,\nplease contact the authors for support.\nwww.paramotopy.com\n";
40 std::stringstream mpicommand;
42 mpicommand << paramotopy_settings.
settings[
"parallelism"][
"architecture"].value() <<
" -n ";
43 mpicommand << paramotopy_settings.
settings[
"parallelism"][
"numprocs"].value() <<
" ";
44 std::stringstream addmachinecommand;
45 addmachinecommand <<
"-machinefile " << paramotopy_settings.
settings[
"parallelism"][
"machinefile"].value() <<
" ";
46 mpicommand << (paramotopy_settings.
settings[
"parallelism"][
"usemachine"].intvalue==1 ? addmachinecommand.str() :
"");
49 boost::filesystem::path steptwopath = paramotopy_settings.
settings[
"system"][
"step2location"].pathvalue;
50 steptwopath /=
"step2";
58 if (paramotopy_settings.
settings[
"system"][
"stifle"].intvalue==1){
59 mpicommand <<
" > /dev/null ";
63 std::cout <<
"\n\n\n\n\n\n\n\n" << mpicommand.str() <<
"\n\n\n\n\n\n\n\n\n";
65 system(mpicommand.str().c_str());
88 boost::filesystem::path settings_filename = paramotopy_info.
location;
89 settings_filename /=
"prefs.xml";
90 paramotopy_settings.
save(settings_filename);
93 boost::filesystem::path step2path = paramotopy_info.
location;
96 if (boost::filesystem::exists(step2path)){
97 if (
get_int_choice(
"found previous step2 folder. remove, or bail out?\n0) bail out\n1) remove and continue\n: ",0,1)==1){
98 boost::filesystem::remove_all( step2path );
100 step2path +=
"finished";
101 if (boost::filesystem::exists(step2path)) {
102 boost::filesystem::remove( step2path );
106 std::cout <<
"returning to paramotopy main menu without running step2" << std::endl;
117 boost::filesystem::path randpointfilename = paramotopy_info.
location;
118 randpointfilename /=
"randstart";
120 fout.open(randpointfilename.c_str());
122 for (
int ii = 0; ii < paramotopy_info.
numparam; ++ii){
134 if (paramotopy_settings.
settings[
"parallelism"][
"parallel"].intvalue == 0) {
std::vector< std::pair< double, double > > RandomValues
std::string convert_spaces_to_escaped(std::string workwithme)
int get_int_choice(std::string display_string, int min_value, int max_value)
boost::filesystem::path inputfilename
boost::filesystem::path location
A class that stores the general program settings of Paramotopy.
void CopyUserDefinedFile()
A class for the input file parser.