/* evenOdd.cpp is a simple test program for the MPI_Process class.
 * Joel Adams, January 2000.
 */

#include "MPI_Process.h"

bool MPI_Process::run()
{
  cout << hostName() << ", rank " << rank();

  if ( rank() % 2 )
    cout << " is even!" << endl;
  else
    cout << " is odd!" << endl;

  return true;
}

int main(int argc, char ** argv)
{
  MPI_Process aProcess(argc, argv);   // NOTE: no ampersands needed!
  aProcess.run();
}


