OSDrum.cpp File Reference

Classes

class  Drum
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
175 {
176  // create an instance of the Drum class
177  Drum dpm;
178  // command line arguments:
179  dpm.setNumberOfOMPThreads(helpers::readFromCommandLine(argc, argv, "-omp", 1));
180  // turn on additional output files for viewing/analysing the data
181  dpm.test(helpers::readFromCommandLine(argc, argv, "-test"));
182  // turn on additional output files for viewing/analysing the data
183  dpm.soft(helpers::readFromCommandLine(argc, argv, "-soft"));
184  // turn on additional output files for viewing/analysing the data
185  dpm.writeOutput(helpers::readFromCommandLine(argc, argv, "-writeOutput"));
186  // use the command line argument -useMercuryWalls to turn on the smooth wall implementation
187  dpm.useMercuryWalls(helpers::readFromCommandLine(argc, argv, "-useMercuryWalls"));
188  // call the solve routine
189  dpm.solve();
190  return 0;
191 }
void setNumberOfOMPThreads(int numberOfOMPThreads)
Sets the number of omp threads.
Definition: DPMBase.cc:1248
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
Definition: RotatingDrum.cpp:10
void soft(bool soft)
Definition: MercuryOS.h:54
void useMercuryWalls(bool useMercuryWalls)
Definition: MercuryOS.h:66
void test(bool test)
Definition: MercuryOS.h:42
void writeOutput(bool writeOutput)
Definition: MercuryOS.h:30
bool readFromCommandLine(int argc, char *argv[], const std::string &varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:99

References helpers::readFromCommandLine(), DPMBase::setNumberOfOMPThreads(), MercuryOS::soft(), DPMBase::solve(), MercuryOS::test(), MercuryOS::useMercuryWalls(), and MercuryOS::writeOutput().