OSSilo.cpp File Reference

Classes

class  Silo
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
220 {
221  // create an instance of the Silo class
222  Silo dpm;
223  // command line arguments:
224  dpm.setNumberOfOMPThreads(helpers::readFromCommandLine(argc, argv, "-omp", 1));
225  // turn on additional output files for viewing/analysing the data
226  dpm.writeOutput(helpers::readFromCommandLine(argc, argv, "-writeOutput"));
227  // turn on additional output files for viewing/analysing the data
228  dpm.test(helpers::readFromCommandLine(argc, argv, "-test"));
229  // read from command line whether large or small orifice is used
230  dpm.useSmallOrifice(helpers::readFromCommandLine(argc, argv, "-useSmallOrifice"));
231  // read from command line whether large or small orifice is used
232  dpm.useM1(helpers::readFromCommandLine(argc, argv, "-useM1"));
233  // call the solve routine
234  dpm.solve();
235  return 0;
236 }
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: PlotSilo.cpp:30
void useSmallOrifice(bool useSmallOrifice)
Definition: OSSilo.cpp:49
void useM1(bool useM1)
Definition: OSSilo.cpp:61
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(), DPMBase::solve(), MercuryOS::test(), Silo::useM1(), Silo::useSmallOrifice(), and MercuryOS::writeOutput().