From 9eb78ab459983ce543e8f5364b211e49321a838e Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sat, 26 Oct 2024 08:57:10 +0800 Subject: [PATCH] Initalize the variable in 01-intro MPI data distribution example --- 01-intro/01-intro.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01-intro/01-intro.tex b/01-intro/01-intro.tex index 91374be..d5cb4fc 100644 --- a/01-intro/01-intro.tex +++ b/01-intro/01-intro.tex @@ -195,7 +195,7 @@ \section{MPI data distribution} MPI_Comm_rank(MPI_COMM_WORLD, &world_rank); // Define message - int number; + int number = 0; if (world_rank == 0) { // If we are rank 0, set number to -1 and send it to process 1 number = -1;