From 5488c92f23e0df1e70be0db998d93ef2cf71ac15 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 14 Sep 2010 15:05:46 -0400 Subject: [PATCH] Removed src/MPI2_message_passing/ and replaced with src/MPI2_message_passing2/. The only file in src/MPI2_message_passing: message.c is effectively identical to the new simplest_message.c --- src/MPI2_message_passing/.htaccess | 1 - .../.make_tar | 0 .../generate_random_data.c | 0 .../hop.c | 0 .../hop_again_again.c | 0 src/MPI2_message_passing/messages.c | 49 ------------------- .../ping_pong.c | 0 .../ring.c | 0 .../simple_message.c | 0 .../simplest_message.c | 0 .../stats.c | 0 .../still_simple.c | 0 12 files changed, 50 deletions(-) delete mode 100644 src/MPI2_message_passing/.htaccess rename src/{MPI2_message_passing2 => MPI2_message_passing}/.make_tar (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/generate_random_data.c (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/hop.c (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/hop_again_again.c (100%) delete mode 100644 src/MPI2_message_passing/messages.c rename src/{MPI2_message_passing2 => MPI2_message_passing}/ping_pong.c (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/ring.c (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/simple_message.c (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/simplest_message.c (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/stats.c (100%) rename src/{MPI2_message_passing2 => MPI2_message_passing}/still_simple.c (100%) diff --git a/src/MPI2_message_passing/.htaccess b/src/MPI2_message_passing/.htaccess deleted file mode 100644 index ad0f04a..0000000 --- a/src/MPI2_message_passing/.htaccess +++ /dev/null @@ -1 +0,0 @@ -AddType text/plain .c diff --git a/src/MPI2_message_passing2/.make_tar b/src/MPI2_message_passing/.make_tar similarity index 100% rename from src/MPI2_message_passing2/.make_tar rename to src/MPI2_message_passing/.make_tar diff --git a/src/MPI2_message_passing2/generate_random_data.c b/src/MPI2_message_passing/generate_random_data.c similarity index 100% rename from src/MPI2_message_passing2/generate_random_data.c rename to src/MPI2_message_passing/generate_random_data.c diff --git a/src/MPI2_message_passing2/hop.c b/src/MPI2_message_passing/hop.c similarity index 100% rename from src/MPI2_message_passing2/hop.c rename to src/MPI2_message_passing/hop.c diff --git a/src/MPI2_message_passing2/hop_again_again.c b/src/MPI2_message_passing/hop_again_again.c similarity index 100% rename from src/MPI2_message_passing2/hop_again_again.c rename to src/MPI2_message_passing/hop_again_again.c diff --git a/src/MPI2_message_passing/messages.c b/src/MPI2_message_passing/messages.c deleted file mode 100644 index d0b37d9..0000000 --- a/src/MPI2_message_passing/messages.c +++ /dev/null @@ -1,49 +0,0 @@ - - /* Simplest code to illustrate */ - /* Message Passing */ - - /* process 0 sends a message to */ - /* all other processes */ - - /* Michel Vallieres */ -#include -#include - -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