114 vector<Mdouble> study_num;
116 if (argc>1) study_num[0]=atof(argv[1]);
117 else { study_num[0]=4; cout <<
"No study number given; using lambda=1" << endl;}
118 if (argc>2) study_num[1]=atof(argv[2]);
119 else { study_num[1]=10; cout <<
"No height given; using h=10 d" << endl;}
120 if (argc>3) study_num[2]=atof(argv[3]);
121 else { study_num[2]=24; cout <<
"No angle given; using theta=24 deg" << endl;}
124 if (argc>3) problem.
run(study_num,argc-3,argv+3);
125 else problem.
run(study_num,1,argv);
@ MULTIPLE_FILES_PADDED
each time-step will be written into/read from separate files numbered consecutively,...
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1493
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
Definition: PeriodicInflow2D_Initiation.cpp:30
void run(std::vector< Mdouble > study_num, int argc, char *argv[])
Definition: PeriodicInflow2D_Initiation.cpp:48