Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CommSerial.cpp
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File CommSerial.cpp
4 //
5 // For more information, please see: http://www.nektar.info
6 //
7 // The MIT License
8 //
9 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10 // Department of Aeronautics, Imperial College London (UK), and Scientific
11 // Computing and Imaging Institute, University of Utah (USA).
12 //
13 // License for the specific language governing rights and limitations under
14 // Permission is hereby granted, free of charge, to any person obtaining a
15 // copy of this software and associated documentation files (the "Software"),
16 // to deal in the Software without restriction, including without limitation
17 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
18 // and/or sell copies of the Software, and to permit persons to whom the
19 // Software is furnished to do so, subject to the following conditions:
20 //
21 // The above copyright notice and this permission notice shall be included
22 // in all copies or substantial portions of the Software.
23 //
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
30 // DEALINGS IN THE SOFTWARE.
31 //
32 // Description: Serial (= no) communication implementation
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
37 
38 namespace Nektar
39 {
40  namespace LibUtilities
41  {
42  std::string CommSerial::className
44  "Serial",
46  "Single-process serial communication.");
47 
48  CommSerial::CommSerial(int argc, char* argv[]) :
49  Comm(argc, argv)
50  {
51  m_size = 1;
52  m_type = "Serial";
53  }
54 
56  {
57 
58  }
59 
60  /**
61  *
62  */
64  {
65 
66  }
67 
68  /**
69  *
70  */
72  {
73  return 0;
74  }
75 
76 
77  /**
78  *
79  */
81  {
82  return true;
83  }
84 
85 
86  /**
87  *
88  */
90  {
91  }
92 
93 
94  /**
95  *
96  */
97  void CommSerial::v_Send(int pProc, Array<OneD, NekDouble>& pData)
98  {
99  }
100 
101 
102  /**
103  *
104  */
105  void CommSerial::v_Recv(int pProc, Array<OneD, NekDouble>& pData)
106  {
107  }
108 
109 
110  /**
111  *
112  */
113  void CommSerial::v_Send(int pProc, Array<OneD, int>& pData)
114  {
115  }
116 
117 
118  /**
119  *
120  */
121  void CommSerial::v_Recv(int pProc, Array<OneD, int>& pData)
122  {
123  }
124 
125 
126  /**
127  *
128  */
129  void CommSerial::v_Send(int pProc, std::vector<unsigned int>& pData)
130  {
131  }
132 
133 
134  /**
135  *
136  */
137  void CommSerial::v_Recv(int pProc, std::vector<unsigned int>& pData)
138  {
139  }
140 
141 
142  /**
143  *
144  */
145  void CommSerial::v_SendRecv(int pSendProc,
146  Array<OneD, NekDouble>& pSendData,
147  int pRecvProc,
148  Array<OneD, NekDouble>& pRecvData)
149  {
150  }
151 
152 
153  /**
154  *
155  */
156  void CommSerial::v_SendRecv(int pSendProc,
157  Array<OneD, int>& pSendData,
158  int pRecvProc,
159  Array<OneD, int>& pRecvData)
160  {
161  }
162 
163 
164  /**
165  *
166  */
167  void CommSerial::v_SendRecvReplace(int pSendProc,
168  int pRecvProc,
169  Array<OneD, NekDouble>& pSendData)
170  {
171  }
172 
173 
174  /**
175  *
176  */
177  void CommSerial::v_SendRecvReplace(int pSendProc,
178  int pRecvProc,
179  Array<OneD, int>& pSendData)
180  {
181  }
182 
183 
184  /**
185  *
186  */
188  {
189 
190  }
191 
192 
193  /**
194  *
195  */
196  void CommSerial::v_AllReduce(int& pData, enum ReduceOperator pOp)
197  {
198 
199  }
200 
201 
202  /**
203  *
204  */
205  void CommSerial::v_AllReduce(Array<OneD, NekDouble>& pData, enum ReduceOperator pOp)
206  {
207 
208  }
209 
210 
211  /**
212  *
213  */
214  void CommSerial::v_AllReduce(Array<OneD, int >& pData, enum ReduceOperator pOp)
215  {
216 
217  }
218 
219 
220  /**
221  *
222  */
223  void CommSerial::v_AllReduce(std::vector<unsigned int>& pData, enum ReduceOperator pOp)
224  {
225 
226  }
227 
228 
229  /**
230  *
231  */
232  void CommSerial::v_AlltoAll(Array<OneD, NekDouble>& pSendData,Array<OneD, NekDouble>& pRecvData)
233  {
234 
235  }
236 
237 
238  /**
239  *
240  */
241  void CommSerial::v_AlltoAll(Array<OneD, int>& pSendData,Array<OneD, int>& pRecvData)
242  {
243 
244  }
245 
246 
247  /**
248  *
249  */
250  void CommSerial::v_AlltoAllv(Array<OneD, NekDouble>& pSendData,
251  Array<OneD, int>& pSendDataSizeMap,
252  Array<OneD, int>& pSendDataOffsetMap,
253  Array<OneD, NekDouble>& pRecvData,
254  Array<OneD, int>& pRecvDataSizeMap,
255  Array<OneD, int>& pRecvDataOffsetMap)
256  {
257 
258  }
259 
260 
261  /**
262  *
263  */
264  void CommSerial::v_AlltoAllv(Array<OneD, int>& pSendData,
265  Array<OneD, int>& pSendDataSizeMap,
266  Array<OneD, int>& pSendDataOffsetMap,
267  Array<OneD, int>& pRecvData,
268  Array<OneD, int>& pRecvDataSizeMap,
269  Array<OneD, int>& pRecvDataOffsetMap)
270  {
271 
272  }
273 
274 
275  /**
276  *
277  */
278  void CommSerial::v_SplitComm(int pRows, int pColumns)
279  {
280  ASSERTL0(false, "Cannot split a serial process.");
281  }
282  }
283 }