Changes between Version 6 and Version 7 of MpiKernels
- Timestamp:
- 02/28/12 16:03:40 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MpiKernels
v6 v7 13 13 * Any MUSCLE API routine may be **ONLY** called by the rank 0 process. If you need any parameters to be available for the all MPI processes use `MPI_Bcast` function as in provided example: 14 14 {{{ 15 MPI_Bcast(deltaE, 1, MPI_DOUBLE, 0, MPI_COMM_WORLD) 16 }}} 17 15 #!C 16 void Ring_Broadcast_Params(double *deltaE, double *maxE) 17 { 18 assert( MPI_Bcast(deltaE, 1, MPI_DOUBLE, 0, MPI_COMM_WORLD) == MPI_SUCCESS); 19 assert( MPI_Bcast(maxE, 1, MPI_DOUBLE, 0, MPI_COMM_WORLD) == MPI_SUCCESS); 20 } 21 }}}} 18 22 === MPI implementation === 19 23