Commit 74358bd8 authored by Adam Ralph's avatar Adam Ralph
Browse files

Replace pingpong.c

parent d4b5f483
......@@ -13,14 +13,9 @@ int main(int argc, char **argv){
// Must call MPI_Init before any other MPI calls
if ( argc != 2 ) {
printf("Usage: ./pingPong N\n N is the number of times to run the simulation\n" );
MPI_Abort( MPI_COMM_WORLD, 10 );
// We take a command line argument to decide the number of loops to do
int N;
N = atoi(argv[1]);
int N = 1000;
// Get the size of the communicator
// Get our rank in this communicator
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment