53 #include "../epetra_test_err.h"
56 int main(
int argc,
char *argv[]) {
60 MPI_Init(&argc,&argv);
70 if (argc>1)
if (argv[1][0]==
'-' && argv[1][1]==
'v') verbose =
true;
72 if (verbose && comm.
MyPID()==0)
76 if (verbose) cout << comm <<endl;
81 const char* ObjLabel = obj.
Label();
82 const char* ObjLabel1 =
"Epetra::Object";
83 if (verbose) cout << endl << endl <<
"This should say " << ObjLabel1 <<
": " << ObjLabel << endl << endl << endl;
87 const char* NewObjLabel =
"New name for Epetra_Object";
89 const char* NewObjLabel1 = obj.
Label();
90 if (verbose) cout << endl <<
"This should say " << NewObjLabel <<
": " << NewObjLabel1 << endl << endl << endl;
95 if (verbose) cout << endl <<
"Default Traceback Mode value = " << obj.
GetTracebackMode() << endl;
98 if (verbose) cout <<
"Set Traceback Mode value to one less than default = " << obj.
GetTracebackMode() << endl << endl;
105 if (verbose) cout << endl << endl <<
"This should say 1: " << TbM << endl << endl;
109 const char* NewObjLabel2 = obj2.
Label();
110 if (verbose) cout << endl << endl <<
"This should say " << NewObjLabel <<
": " << NewObjLabel2 << endl << endl << endl;
114 const char* NewObjLabel3 = obj3.
Label();
116 if (verbose) cout << endl <<
"This should say " << NewObjLabel <<
"," <<
"1: " << NewObjLabel3 <<
"," << TbM1 << endl << endl << endl;
121 const char* NewObjLabel4 = obj4.
Label();
123 if (verbose) cout << endl <<
"This should say " << NewObjLabel <<
"," <<
"1: " << NewObjLabel4 <<
"," << TbM2 << endl << endl << endl;
#define EPETRA_TEST_ERR(a, b)
virtual void SetLabel(const char *const Label)
Epetra_Object Label definition using char *.
static void SetTracebackMode(int TracebackModeValue)
Set the value of the Epetra_Object error traceback report mode.
int MyPID() const
Return my process ID.
Epetra_MpiComm: The Epetra MPI Communication Class.
std::string Epetra_Version()
virtual const char * Label() const
Epetra_Object Label access funtion.
Epetra_Object: The base Epetra class.
Epetra_SerialComm: The Epetra Serial Communication Class.
static int GetTracebackMode()
Get the value of the Epetra_Object error report mode.
int main(int argc, char *argv[])
const int DefaultTracebackMode