OSPenetration.cpp File Reference
#include "MercuryOS.h"
#include <Walls/TriangleWall.h>

Classes

class  Penetration
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
185 {
186  // create an instance of the Penetration class
187  Penetration dpm;
188  // command line arguments:
189  dpm.setNumberOfOMPThreads(helpers::readFromCommandLine(argc, argv, "-omp", 1));
190  // turn on additional output files for viewing/analysing the data
191  dpm.test(helpers::readFromCommandLine(argc, argv, "-test"));
192  // turn on additional output files for viewing/analysing the data
193  dpm.writeOutput(helpers::readFromCommandLine(argc, argv, "-writeOutput"));
194  // read how many particles should be read (25K, 50K or 100K)
195  dpm.setSize(helpers::readFromCommandLine(argc, argv, "-size", std::string("25K")));
196  // call the solve routine
197  dpm.solve();
198  return 0;
199 }
void setNumberOfOMPThreads(int numberOfOMPThreads)
Definition: DPMBase.cc:1257
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void test(bool test)
Definition: MercuryOS.h:62
void writeOutput(bool writeOutput)
Definition: MercuryOS.h:50
Definition: OSPenetration.cpp:39
void setSize(std::string size)
Definition: OSPenetration.cpp:49
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(), Penetration::setSize(), DPMBase::solve(), MercuryOS::test(), and MercuryOS::writeOutput().