Added default comms member to avoid multiple cast

This commit is contained in:
Hrvoje Jasak 2015-10-30 15:37:51 +00:00
parent e8e90b23ea
commit c3c310daa4

View file

@ -234,6 +234,15 @@ public:
//- Default commsType //- Default commsType
static const debug::optimisationSwitch defaultCommsType; static const debug::optimisationSwitch defaultCommsType;
//- Default comms with a cast
inline static Pstream::commsTypes defaultComms()
{
return static_cast<Pstream::commsTypes>
(
Pstream::defaultCommsType()
);
}
// Constructors // Constructors