Changes between Version 22 and Version 23 of C++ API
- Timestamp:
- 09/12/13 12:20:48 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
C++ API
v22 v23 86 86 === MUSCLE and MPI === 87 87 88 When using MPI, MUSCLE calls only do their operations in rank 0, calls from other ranks are ignored. This means that the data should be gathered with MPI before a `MUSCLE_Send` and broadcasted after a `MUSCLE_Receive`. The functions `MUSCLE_Kernel_Name`, `MUSCLE_Get_Property`, and `MUSCLE_Will_Stop` cannot give a meaningful result in other ranks than rank 0 so88 Depending on the MPI implementation, MUSCLE_Init should be called before MPI_Init. This may generate a warning about forking, but as long as the submodel produces correct results this can be ignored. When using MPI, MUSCLE calls only do their operations in rank 0, calls from other ranks are ignored. This means that the data should be gathered with MPI before a `MUSCLE_Send` and broadcasted after a `MUSCLE_Receive`. The functions `MUSCLE_Kernel_Name`, `MUSCLE_Get_Property`, and `MUSCLE_Will_Stop` cannot give a meaningful result in other ranks than rank 0 so 89 89 calling them from other ranks results in undefined behavior (and should be prevented). Their result can then be propagated with MPI in your code, if needed. 90 90