using default comms type

This commit is contained in:
mattijs
2008-10-06 11:28:55 +01:00
parent aea5c0876f
commit dbd773a8aa

View File

@ -168,9 +168,27 @@ public:
List<T>& List<T>&
); );
//- Distribute data using scheduling. //- Distribute data using default commsType.
template<class T> template<class T>
void distribute(List<T>& fld) const void distribute(List<T>& fld) const
{
if
(
Pstream::defaultCommsType == Pstream::nonBlocking
&& contiguous<T>()
)
{
distribute
(
Pstream::nonBlocking,
List<labelPair>(),
constructSize_,
subMap_,
constructMap_,
fld
);
}
else if (Pstream::defaultCommsType == Pstream::scheduled)
{ {
distribute distribute
( (
@ -182,6 +200,19 @@ public:
fld fld
); );
} }
else
{
distribute
(
Pstream::blocking,
List<labelPair>(),
constructSize_,
subMap_,
constructMap_,
fld
);
}
}
//- Correct for topo change. //- Correct for topo change.
void updateMesh(const mapPolyMesh&) void updateMesh(const mapPolyMesh&)