#include <iostream>
#include <mpi.h>
void DebugD |
( |
const int |
n, |
|
|
const double |
x[] |
|
) |
| |
Reads a integer number with the rank of a process from the terminal and writes the elements of vector x
of this process onto the terminal. This will be repeated while rank number is valid, i.e., -1 stops the loop.
- Parameters
-
[in] | n | number of elements of vector x (of my process) |
[in] | x | local vector (double) on my process |
Reads one integer from the terminal and broadcasts it to all processes.
- Returns
- a number read by root process 0 which is broadcasted to all processes