28 #include "Epetra_SerialComm.h"
36 int main(
int argc,
char *argv[]){
39 MPI_Init(&argc, &argv);
45 Epetra_SerialComm epetra_serial_comm;
46 Epetra_Comm * epetra_comm;
47 epetra_comm = dynamic_cast<Epetra_Comm*>(&epetra_serial_comm);
51 streambuf * stream_buf;
52 stream_buf = dynamic_cast<streambuf*>(&string_buf);
53 iostream io_stream(stream_buf);
55 o_stream = dynamic_cast<ostream*>(&io_stream);
59 new_package_jambo.
Print(*o_stream);
63 io_stream.getline(temp, 83, 0);
65 char * expected =
"This will print out one line for each of the 1 processes \n\nJambo. I am process 0\n";
67 if(strcmp(temp, expected) != 0){
68 cout <<
"Test Failed!" << endl <<
" Got::" << strlen(temp) <<
"::" << temp <<
"::" << endl <<
"Expected::" << strlen(expected) <<
"::" << expected <<
"::" << endl;
71 cout <<
"Test passed!" << endl;