MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / commsStruct

Class commsStruct

src/OpenFOAM/db/IOstreams/Pstreams/UPstream.H:77–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76 //- Structure for communicating between processors
77 class commsStruct
78 {
79 // Private data
80
81 //- procID of above processor
82 label above_;
83
84 //- procIDs of processors directly below me
85 labelList below_;
86
87 //- procIDs of all processors below (so not just directly below)
88 labelList allBelow_;
89
90 //- procIDs of all processors not below. (inverse set of
91 // allBelow_ and minus myProcNo)
92 labelList allNotBelow_;
93
94
95 public:
96
97 // Constructors
98
99 //- Construct null
100 commsStruct();
101
102 //- Construct from components
103 commsStruct
104 (
105 const label,
106 const labelList&,
107 const labelList&,
108 const labelList&
109 );
110
111 //- Construct from components; construct allNotBelow_
112 commsStruct
113 (
114 const label nProcs,
115 const label myProcID,
116 const label,
117 const labelList&,
118 const labelList&
119 );
120
121
122 // Member Functions
123
124 // Access
125
126 label above() const
127 {
128 return above_;
129 }
130
131 const labelList& below() const
132 {
133 return below_;
134 }

Callers 2

UPstream.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected