View Issue Details

IDProjectCategoryView StatusLast Update
0001128OpenFOAMBugpublic2014-01-08 15:37
Reporteruser826Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformAllOSAllOS VersionAll
Summary0001128: Incorrect usage of MPI datatype MPI_PACKED
DescriptionIn UIPread.C and UOPWrite.C, the MPI datatype MPI_PACKED is used for sending and receiving messages.

However, the datatype MPI_PACKED is reserved for MPI messages which have been prepared using MPI_Pack() (which is NOT the case here). When sending a buffer that has been filled with MPI_Pack(), the MPI_Pack() output argument 'position' must be used as 'count' argument for MPI_Send(). It is NOT guaranteed by the MPI standard that the buffer size for MPI_PACKED is measured in bytes.

Therefore MPI_BYTE should be used instead.

Reference:
"Using MPI" - Gropp, Lusk, and Skjellum
TagsNo tags attached.

Activities

henry

2014-01-08 15:37

manager   ~0002753

Thanks for the bug report, resolved by
commit e7ea964df34b06f049673c2e206f6724ff6cbe5b

Issue History

Date Modified Username Field Change
2014-01-08 12:40 user826 New Issue
2014-01-08 15:37 henry Note Added: 0002753
2014-01-08 15:37 henry Status new => resolved
2014-01-08 15:37 henry Resolution open => fixed
2014-01-08 15:37 henry Assigned To => henry