hopefully the last of the NamedEnum out-of-bounds

This commit is contained in:
Mark Olesen
2008-06-17 16:14:34 +02:00
parent 045a08c9db
commit 992d33b28a
2 changed files with 3 additions and 5 deletions

View File

@ -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;

View File

@ -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);
} }