OSSilo.cpp File Reference

Classes

class  Silo
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
200 {
201  // create an instance of the Silo class
202  Silo dpm;
203  // command line arguments:
204  dpm.setNumberOfOMPThreads(helpers::readFromCommandLine(argc, argv, "-omp", 1));
205  // turn on additional output files for viewing/analysing the data
206  dpm.writeOutput(helpers::readFromCommandLine(argc, argv, "-writeOutput"));
207  // turn on additional output files for viewing/analysing the data
208  dpm.test(helpers::readFromCommandLine(argc, argv, "-test"));
209  // read from command line whether large or small orifice is used
210  dpm.useSmallOrifice(helpers::readFromCommandLine(argc, argv, "-useSmallOrifice"));
211  // read from command line whether large or small orifice is used
212  dpm.useM1(helpers::readFromCommandLine(argc, argv, "-useM1"));
213  // call the solve routine
214  dpm.solve();
215  return 0;
216 }
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
void test(bool test)
Definition: MercuryOS.h:42
void writeOutput(bool writeOutput)
Definition: MercuryOS.h:30
Definition: PlotSilo.cpp:9
void useSmallOrifice(bool useSmallOrifice)
Definition: OSSilo.cpp:29
void useM1(bool useM1)
Definition: OSSilo.cpp:41
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(), DPMBase::solve(), MercuryOS::test(), Silo::useM1(), Silo::useSmallOrifice(), and MercuryOS::writeOutput().