fix formatting
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -2,6 +2,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
(void) argc;
|
||||||
|
(void) argv;
|
||||||
|
|
||||||
// Initialize the MPI environment
|
// Initialize the MPI environment
|
||||||
MPI_Init(NULL, NULL);
|
MPI_Init(NULL, NULL);
|
||||||
|
|
||||||
@@ -32,7 +35,7 @@ int main(int argc, char **argv) {
|
|||||||
MPI_Status stat;
|
MPI_Status stat;
|
||||||
MPI_Recv(&val, 1, MPI_FLOAT, src_rank, 0, MPI_COMM_WORLD, &stat);
|
MPI_Recv(&val, 1, MPI_FLOAT, src_rank, 0, MPI_COMM_WORLD, &stat);
|
||||||
|
|
||||||
printf("rank %d got %f \n", world_rank, val);
|
printf("rank %d got %f\n", world_rank, val);
|
||||||
|
|
||||||
// Finalize the MPI environment.
|
// Finalize the MPI environment.
|
||||||
MPI_Finalize();
|
MPI_Finalize();
|
||||||
|
Reference in New Issue
Block a user