Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TestProgram Class Reference
Inheritance diagram for TestProgram:
Collaboration diagram for TestProgram:

Public Member Functions

 TestProgram ()
 
 TestProgram (int nargs, char **args)
 
virtual int Initialize ()
 

Protected Attributes

std::string sverb
 
std::string spart
 
std::string sclone
 
bool do_part
 
bool do_meshtest
 
bool do_assem
 
bool do_orient
 
bool debug
 
bool do_check
 
bool do_gen
 
bool do_clone
 
bool do_dump
 
bool do_renum
 

Detailed Description

Definition at line 61 of file Test.C.

Constructor & Destructor Documentation

TestProgram ( )
inline

Definition at line 69 of file Test.C.

69  :
70  Global::Program<TestGlobal,TestComLine>()
71  {};
TestProgram ( int  nargs,
char **  args 
)
inline

Definition at line 72 of file Test.C.

72  :
73  Global::Program<TestGlobal,TestComLine>(nargs,args)
74  {};

Member Function Documentation

virtual int Initialize ( )
inlinevirtual

Definition at line 75 of file Test.C.

References debug, do_assem, do_check, do_clone, do_dump, do_gen, do_meshtest, do_orient, do_part, do_renum, sclone, spart, and sverb.

Referenced by main().

76  {
77  int retval = Global::Program<TestGlobal,TestComLine>::Initialize();
78  sverb = _command_line.GetOption("verb");
79  spart = _command_line.GetOption("partition");
80  sclone = _command_line.GetOption("clone");
81  do_part = !_command_line.GetOption("partition").empty();
82  do_meshtest = !_command_line.GetOption("mesh").empty();
83  do_assem = !_command_line.GetOption("assembly").empty();
84  do_orient = !_command_line.GetOption("reorient").empty();
85  debug = !_command_line.GetOption("debug").empty();
86  do_check = !_command_line.GetOption("checking").empty();
87  do_gen = !_command_line.GetOption("generate").empty();
88  do_clone = !_command_line.GetOption("clone").empty();
89  do_renum = !_command_line.GetOption("renumber").empty();
90  do_dump = !_command_line.GetOption("sparse").empty();
91  if(!_command_line.GetOption("help").empty()){
92  if(_OutStream)
93  *_OutStream << _command_line.LongUsage() << std::endl;
94  _communicator.SetExit(1);
95  }
96  if(_communicator.Check())
97  return(1);
98  if(retval){
99  if(_ErrStream)
100  *_ErrStream << _command_line.ErrorReport() << std::endl
101  << std::endl << _command_line.ShortUsage() << std::endl;
102  _communicator.SetExit(1);
103  }
104  if(_communicator.Check())
105  return(1);
106  return(0);
107  };
std::string sclone
Definition: Test.C:64
bool do_renum
Definition: Test.C:66
bool do_clone
Definition: Test.C:66
bool do_gen
Definition: Test.C:66
bool do_assem
Definition: Test.C:65
bool do_check
Definition: Test.C:66
bool do_part
Definition: Test.C:65
bool do_dump
Definition: Test.C:66
std::string spart
Definition: Test.C:64
bool do_orient
Definition: Test.C:65
bool do_meshtest
Definition: Test.C:65
std::string sverb
Definition: Test.C:64
bool debug
Definition: Test.C:65

Here is the caller graph for this function:

Member Data Documentation

bool debug
protected

Definition at line 65 of file Test.C.

Referenced by Initialize().

bool do_assem
protected

Definition at line 65 of file Test.C.

Referenced by Initialize().

bool do_check
protected

Definition at line 66 of file Test.C.

Referenced by Initialize().

bool do_clone
protected

Definition at line 66 of file Test.C.

Referenced by Initialize().

bool do_dump
protected

Definition at line 66 of file Test.C.

Referenced by Initialize().

bool do_gen
protected

Definition at line 66 of file Test.C.

Referenced by Initialize().

bool do_meshtest
protected

Definition at line 65 of file Test.C.

Referenced by Initialize().

bool do_orient
protected

Definition at line 65 of file Test.C.

Referenced by Initialize().

bool do_part
protected

Definition at line 65 of file Test.C.

Referenced by Initialize().

bool do_renum
protected

Definition at line 66 of file Test.C.

Referenced by Initialize().

std::string sclone
protected

Definition at line 64 of file Test.C.

Referenced by Initialize().

std::string spart
protected

Definition at line 64 of file Test.C.

Referenced by Initialize().

std::string sverb
protected

Definition at line 64 of file Test.C.

Referenced by Initialize().


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