Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DriverProgramComLine Class Reference

The ComLineObject for the example programs. More...

#include <DriverProgram.H>

Inheritance diagram for DriverProgramComLine:
Collaboration diagram for DriverProgramComLine:

Public Member Functions

 DriverProgramComLine ()
 
 DriverProgramComLine (const char *args[])
 
void Initialize ()
 This is where the actual options and arguments are described. More...
 

Detailed Description

The ComLineObject for the example programs.

This comline object implements a basic command-line interface handler for the example programs. These command-line objects handle all of the generation of help messages, command line argument validation, and encapsulation.

Definition at line 75 of file DriverProgram.H.

Constructor & Destructor Documentation

Definition at line 78 of file DriverProgram.H.

79  : IRAD::Util::ComLineObject()
80  {};
DriverProgramComLine ( const char *  args[])
inline

Definition at line 81 of file DriverProgram.H.

82  : IRAD::Util::ComLineObject(args)
83  {};

Member Function Documentation

void Initialize ( )
inline

This is where the actual options and arguments are described.

For details about what can be done in this function, see the documentation for the IRAD::Util::ComLineObject.

Definition at line 90 of file DriverProgram.H.

90  {
91  AddOption('h',"help");
92  //AddOption('q',"quadratic");
93  AddOption('v',"verbosity",1);
94  AddOption('o',"output",2,"filename");
95  AddArgument("grid input> <bc input",1);
96  AddHelp("help","Prints this long version of help.");
97  AddHelp("output","Specifies the name of the output file.");
98  std::ostringstream Ostr;
99  //Ostr << "If using a mesh with tetrahedral elements, specifying" << std::endl
100  // << "this flag will cause the application to change the 4 node" << std::endl
101  // << " tetrahedra from input to 10 node quadratic tetrahedra";
102  //AddHelp("quadratic",Ostr.str());
103  Ostr.str("");
104  Ostr << "GridConversion requires two arguments in order:" << std::endl
105  << " "
106  << "su2 grid file> <bc file> where the su2 is a grid" << std::endl
107  << " "
108  << "analysis file output from Pointwise in Stanford format." << std::endl
109  << " "
110  << "The bc file indicates a Rocfrac boundary condition for "
111  << "each" << std::endl
112  << " domain." << std::endl
113  << " See the Grid Conversion User Manual for more "
114  << "information on" << std::endl
115  << " the formats of these two files" << std::endl;
116  AddArgHelp("grid input> <bc input",Ostr.str());
117  // The following commented string formation is kept around to
118  // illustrate the required tabs and newlines to make the output
119  // look proper:
120  //
121  // Ostr << "Use fixed problem size in scalability analysis. Only makes"
122  // << "\n\t\tsense when scalability mode is enabled.";
123  // Ostr.str("");
124  Ostr.str("");
125  Ostr << "Main GridConversion program.";
126  _description.assign(Ostr.str());
127 
128  };

The documentation for this class was generated from the following file: