mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
hopefully the last of the NamedEnum out-of-bounds
This commit is contained in:
@ -61,7 +61,7 @@ Foam::IPstream::IPstream
|
|||||||
|
|
||||||
MPI_Status status;
|
MPI_Status status;
|
||||||
|
|
||||||
// If the buffer size is not specified probe the incomming message
|
// If the buffer size is not specified, probe the incomming message
|
||||||
// and set it
|
// and set it
|
||||||
if (!bufSize)
|
if (!bufSize)
|
||||||
{
|
{
|
||||||
@ -181,8 +181,7 @@ Foam::label Foam::IPstream::read
|
|||||||
(
|
(
|
||||||
"IPstream::read"
|
"IPstream::read"
|
||||||
"(const int fromProcNo, char* buf, std::streamsize bufSize)"
|
"(const int fromProcNo, char* buf, std::streamsize bufSize)"
|
||||||
) << "Unsupported communications type "
|
) << "Unsupported communications type " << commsType
|
||||||
<< Pstream::commsTypeNames[commsType]
|
|
||||||
<< Foam::abort(FatalError);
|
<< Foam::abort(FatalError);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@ -119,8 +119,7 @@ bool Foam::OPstream::write
|
|||||||
(
|
(
|
||||||
"OPstream::write"
|
"OPstream::write"
|
||||||
"(const int fromProcNo, char* buf, std::streamsize bufSize)"
|
"(const int fromProcNo, char* buf, std::streamsize bufSize)"
|
||||||
) << "Unsupported communications type "
|
) << "Unsupported communications type " << commsType
|
||||||
<< Pstream::commsTypeNames[commsType]
|
|
||||||
<< Foam::abort(FatalError);
|
<< Foam::abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user