37 int main(
int argc,
char *argv[]){
40 MPI_Init(&argc, &argv);
48 epetra_comm =
dynamic_cast<Epetra_Comm*
>(&epetra_serial_comm);
52 streambuf * stream_buf;
53 stream_buf =
dynamic_cast<streambuf*
>(&string_buf);
54 iostream io_stream(stream_buf);
56 o_stream =
dynamic_cast<ostream*
>(&io_stream);
60 new_package_hello.
Print(*o_stream);
64 io_stream.getline(temp, 83, 0);
66 char * expected =
"This will print out one line for each of the 1 processes \n\nHello. I am process 0\n";
68 if(strcmp(temp, expected) != 0){
69 cout <<
"Test Failed!" << endl <<
" Got::" << strlen(temp) <<
"::" << temp <<
"::" << endl <<
"Expected::" << strlen(expected) <<
"::" << expected <<
"::" << endl;
72 cout <<
"Test passed!" << endl;
virtual void Print(ostream &os) const
int main(int argc, char *argv[])