OSDrum.cpp File Reference

Classes

class  Drum
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
195 {
196  // create an instance of the Drum class
197  Drum dpm;
198  // command line arguments:
199  dpm.setNumberOfOMPThreads(helpers::readFromCommandLine(argc, argv, "-omp", 1));
200  // turn on additional output files for viewing/analysing the data
201  dpm.test(helpers::readFromCommandLine(argc, argv, "-test"));
202  // turn on additional output files for viewing/analysing the data
203  dpm.soft(helpers::readFromCommandLine(argc, argv, "-soft"));
204  // turn on additional output files for viewing/analysing the data
205  dpm.writeOutput(helpers::readFromCommandLine(argc, argv, "-writeOutput"));
206  // use the command line argument -useMercuryWalls to turn on the smooth wall implementation
207  dpm.useMercuryWalls(helpers::readFromCommandLine(argc, argv, "-useMercuryWalls"));
208  // call the solve routine
209  dpm.solve();
210  return 0;
211 }
void setNumberOfOMPThreads(int numberOfOMPThreads)
Definition: DPMBase.cc:1257
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Definition: RotatingDrum.cpp:31
void soft(bool soft)
Definition: MercuryOS.h:74
void useMercuryWalls(bool useMercuryWalls)
Definition: MercuryOS.h:86
void test(bool test)
Definition: MercuryOS.h:62
void writeOutput(bool writeOutput)
Definition: MercuryOS.h:50
bool readFromCommandLine(int argc, char *argv[], std::string varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:103

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