OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

PstreamGlobals.H File Reference

Go to the source code of this file.


Namespaces

namespace  Foam::PstreamGlobals
 Global functions and variables for working with parallel streams, but principally for gamma/mpi.
namespace  Foam
 Namespace for OpenFOAM.

Functions

void gammaWait (const label procNo)
 Block wait for message on port procNo.
label copyReceive (const label procNo, char *buf, const label bufSize)
 Helper routine to copy out newly received data.
label getSizeFromHeader (const char *buf, const label len)
 Helper routine to check if a message is a resize message.
void setResizeMessage (const label len)
 Change the resize message to contain the new length.
label getMaxBufSize (const int procNo)
 Get max size of all receive buffers to procNo.

Variables

FixedList< List< List< char > >, 4 > recvBuf
 Receive buffers.
FixedList< labelList, 4 > recvBufLen
 Length of receive buffers.
labelList recvIndex
 Currently active buffer in receiving.
labelList consumeIndex
 Receive buffer that has to be consumed.
const int resizeMessageLen = 6
 Special message to signal resizing.
uint64_t resizeMessage []
const int initialBufferLen = 2*resizeMessageLen*sizeof(uint64_t)
 Initial buffer length. Should be able to contain the message comfortably.

Detailed Description

Original source file PstreamGlobals.H

Definition in file PstreamGlobals.H.

Copyright © 2000-2009 OpenCFD Ltd