Removed src/MPI2_message_passing/ and replaced with src/MPI2_message_passing2/.
authorW. Trevor King <wking@drexel.edu>
Tue, 14 Sep 2010 19:05:46 +0000 (15:05 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 14 Sep 2010 19:05:46 +0000 (15:05 -0400)
The only file in src/MPI2_message_passing:
  message.c
is effectively identical to the new
  simplest_message.c

12 files changed:
src/MPI2_message_passing/.htaccess [deleted file]
src/MPI2_message_passing/.make_tar [moved from src/MPI2_message_passing2/.make_tar with 100% similarity]
src/MPI2_message_passing/generate_random_data.c [moved from src/MPI2_message_passing2/generate_random_data.c with 100% similarity]
src/MPI2_message_passing/hop.c [moved from src/MPI2_message_passing2/hop.c with 100% similarity]
src/MPI2_message_passing/hop_again_again.c [moved from src/MPI2_message_passing2/hop_again_again.c with 100% similarity]
src/MPI2_message_passing/messages.c [deleted file]
src/MPI2_message_passing/ping_pong.c [moved from src/MPI2_message_passing2/ping_pong.c with 100% similarity]
src/MPI2_message_passing/ring.c [moved from src/MPI2_message_passing2/ring.c with 100% similarity]
src/MPI2_message_passing/simple_message.c [moved from src/MPI2_message_passing2/simple_message.c with 100% similarity]
src/MPI2_message_passing/simplest_message.c [moved from src/MPI2_message_passing2/simplest_message.c with 100% similarity]
src/MPI2_message_passing/stats.c [moved from src/MPI2_message_passing2/stats.c with 100% similarity]
src/MPI2_message_passing/still_simple.c [moved from src/MPI2_message_passing2/still_simple.c with 100% similarity]

diff --git a/src/MPI2_message_passing/.htaccess b/src/MPI2_message_passing/.htaccess
deleted file mode 100644 (file)
index ad0f04a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-AddType text/plain .c
diff --git a/src/MPI2_message_passing/messages.c b/src/MPI2_message_passing/messages.c
deleted file mode 100644 (file)
index d0b37d9..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-
-                /*  Simplest code to illustrate  */
-                /*       Message Passing         */
-
-                /* process 0 sends a message to    */
-                /* all other processes             */
-
-                                                   /* Michel Vallieres */
-#include       <stdio.h>
-#include       <mpi.h>
-
-int main (int argc, char *argv[])
-{
-int my_rank, size;
-int    process;
-double number, send_mesg, recv_mesg;
-   char buf[100];
-
-MPI_Status  recv_status;
-
-    MPI_Init(&argc, &argv);
-
-    MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);
-    MPI_Comm_size(MPI_COMM_WORLD, &size);
-
-    if ( my_rank == 0 )
-     {
-       number = 5.167321;                    /* arbitrary number */
-                                             /* send number to other nodes */
-       for ( process=1; process<size; process++)
-        {
-           MPI_Ssend(&number, 1, MPI_DOUBLE, process, 121, MPI_COMM_WORLD);
-        }
-     }
-    else
-     {
-                                             /* receives message from master */
-        MPI_Recv(&recv_mesg, 1, MPI_DOUBLE, 0, 121,
-                           MPI_COMM_WORLD, &recv_status);
-                                      
-                                             /* which host is this ? Message?*/
-        strcpy(buf, "Hi from the exciting world of ");
-        gethostname(buf + strlen(buf), 64);
-        printf("%s --- I am %d out of %d -- message: %lf \n", buf, rank, size, recv_mesg);
-
-     }
-    
-    MPI_Finalize();
-}