calculate sizes also when running non-parallel
This commit is contained in:
parent
f0ddc03279
commit
de97ff23b9
@ -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
|
||||||
// ~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user