From 992d33b28a0d1dd2bd6e7a343680e773acb7df7a Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 17 Jun 2008 16:14:34 +0200 Subject: [PATCH] hopefully the last of the NamedEnum out-of-bounds --- src/Pstream/mpi/IPread.C | 5 ++--- src/Pstream/mpi/OPwrite.C | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Pstream/mpi/IPread.C b/src/Pstream/mpi/IPread.C index f00f322bab..90fc19b13c 100644 --- a/src/Pstream/mpi/IPread.C +++ b/src/Pstream/mpi/IPread.C @@ -61,7 +61,7 @@ Foam::IPstream::IPstream 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 if (!bufSize) { @@ -181,8 +181,7 @@ Foam::label Foam::IPstream::read ( "IPstream::read" "(const int fromProcNo, char* buf, std::streamsize bufSize)" - ) << "Unsupported communications type " - << Pstream::commsTypeNames[commsType] + ) << "Unsupported communications type " << commsType << Foam::abort(FatalError); return 0; diff --git a/src/Pstream/mpi/OPwrite.C b/src/Pstream/mpi/OPwrite.C index 4f69ef3f75..6f37386d16 100644 --- a/src/Pstream/mpi/OPwrite.C +++ b/src/Pstream/mpi/OPwrite.C @@ -119,8 +119,7 @@ bool Foam::OPstream::write ( "OPstream::write" "(const int fromProcNo, char* buf, std::streamsize bufSize)" - ) << "Unsupported communications type " - << Pstream::commsTypeNames[commsType] + ) << "Unsupported communications type " << commsType << Foam::abort(FatalError); }