2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
This commit is contained in:
Martin Thoma 2014-03-09 21:01:47 +01:00
parent b0bddad82f
commit 420b6b31fd
5 changed files with 41 additions and 22 deletions

View file

@ -1,13 +1,13 @@
#include "mpi.h"
int rank;
MPI_Comm comm;
int rank;
MPI_Comm comm;
...
MPI_Comm_rank(comm, &rank);
if (rank==0) {
... Code fur Prozess 0 ...
}
else {
... Code fur die anderen Prozesse ...
}
...
MPI_Comm_rank(comm, &rank);
if (rank==0) {
... Code fur Prozess 0 ...
}
else {
... Code fur die anderen Prozesse ...
}