Added default comms member to avoid multiple cast
This commit is contained in:
parent
e8e90b23ea
commit
c3c310daa4
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue