calculate sizes also when running non-parallel

This commit is contained in:
mattijs 2009-11-22 17:42:52 +00:00
parent f0ddc03279
commit de97ff23b9

View File

@ -49,8 +49,6 @@ void Pstream::exchange
const int tag, const int tag,
const bool block const bool block
) )
{
if (UPstream::parRun())
{ {
if (!contiguous<T>()) if (!contiguous<T>())
{ {
@ -86,7 +84,8 @@ void Pstream::exchange
combineReduce(sizes, UPstream::listEq()); combineReduce(sizes, UPstream::listEq());
UPstream::msgType() = oldTag; UPstream::msgType() = oldTag;
if (Pstream::parRun())
{
// Set up receives // Set up receives
// ~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~