Nektar++
Loading...
Searching...
No Matches
TraceDataWarehouse.cpp
Go to the documentation of this file.
1///////////////////////////////////////////////////////////////////////////////
2//
3// File: TraceDataWarehouse.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// Permission is hereby granted, free of charge, to any person obtaining a
14// copy of this software and associated documentation files (the "Software"),
15// to deal in the Software without restriction, including without limitation
16// the rights to use, copy, modify, merge, publish, distribute, sublicense,
17// and/or sell copies of the Software, and to permit persons to whom the
18// Software is furnished to do so, subject to the following conditions:
19//
20// The above copyright notice and this permission notice shall be included
21// in all copies or substantial portions of the Software.
22//
23// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29// DEALINGS IN THE SOFTWARE.
30//
31// Description:
32//
33///////////////////////////////////////////////////////////////////////////////
34
36
38{
41 const GlobalTraceNormalKey<double> &globalTraceNormalKey);
44 const GlobalTraceNormalKey<float> &globalTraceNormalKey);
45#if defined(NEKTAR_ENABLE_DEVICE)
48 const GlobalTraceNormalKey<double> &globalTraceNormalKey);
51 const GlobalTraceNormalKey<float> &globalTraceNormalKey);
52#endif
53
56 const LocalTraceNormalKey<double> &localTraceNormalKey);
59 const LocalTraceNormalKey<float> &localTraceNormalKey);
60#if defined(NEKTAR_ENABLE_DEVICE)
63 const LocalTraceNormalKey<double> &localTraceNormalKey);
66 const LocalTraceNormalKey<float> &localTraceNormalKey);
67#endif
68
71 const BndCondNormalKey<double> &bndCondNormalKey);
74 const BndCondNormalKey<float> &bndCondNormalKey);
75#if defined(NEKTAR_ENABLE_DEVICE)
78 const BndCondNormalKey<double> &bndCondNormalKey);
81 const BndCondNormalKey<float> &bndCondNormalKey);
82#endif
83
86 const IPTraceScalarKey<double> &ipTraceScalarKey);
89 const IPTraceScalarKey<float> &ipTraceScalarKey);
90#if defined(NEKTAR_ENABLE_DEVICE)
93 const IPTraceScalarKey<double> &ipTraceScalarKey);
96 const IPTraceScalarKey<float> &ipTraceScalarKey);
97#endif
98
101 const IPTraceDerivBaseKey<double> &ipTraceDerivBaseKey);
104 const IPTraceDerivBaseKey<float> &ipTraceDerivBaseKey);
105#if defined(NEKTAR_ENABLE_DEVICE)
108 const IPTraceDerivBaseKey<double> &ipTraceDerivBaseKey);
111 const IPTraceDerivBaseKey<float> &ipTraceDerivBaseKey);
112#endif
113
116 const LocTracePhysToElmtMapsKey<double> &locTracePhysToElmtMapsKey);
119 const LocTracePhysToElmtMapsKey<float> &locTracePhysToElmtMapsKey);
120#if defined(NEKTAR_ENABLE_DEVICE)
123 const LocTracePhysToElmtMapsKey<double> &locTracePhysToElmtMapsKey);
126 const LocTracePhysToElmtMapsKey<float> &locTracePhysToElmtMapsKey);
127#endif
128
131 const OrientationMapsKey<double> &orientationMapsKey);
134 const OrientationMapsKey<float> &orientationMapsKey);
135#if defined(NEKTAR_ENABLE_DEVICE)
138 const OrientationMapsKey<double> &orientationMapsKey);
141 const OrientationMapsKey<float> &orientationMapsKey);
142#endif
143
146 const TracePointMapKey<double> &tracePointMapKey);
149 const TracePointMapKey<float> &tracePointMapKey);
150#if defined(NEKTAR_ENABLE_DEVICE)
153 const TracePointMapKey<double> &tracePointMapKey);
156 const TracePointMapKey<float> &tracePointMapKey);
157#endif
158
161 const OrientationMapsOffsetKey<double> &orientationMapsOffsetKey);
164 const OrientationMapsOffsetKey<float> &orientationMapsOffsetKey);
165#if defined(NEKTAR_ENABLE_DEVICE)
168 const OrientationMapsOffsetKey<double> &orientationMapsOffsetKey);
171 const OrientationMapsOffsetKey<float> &orientationMapsOffsetKey);
172#endif
173
176 const LocToTracePhysOffsetKey<double> &locToTracePhysOffsetKey);
179 const LocToTracePhysOffsetKey<float> &locToTracePhysOffsetKey);
180#if defined(NEKTAR_ENABLE_DEVICE)
183 const LocToTracePhysOffsetKey<double> &locToTracePhysOffsetKey);
186 const LocToTracePhysOffsetKey<float> &locToTracePhysOffsetKey);
187#endif
188
191 const IsLocTraceLeftAdjacentKey<double> &isLocTraceLeftAdjacentKey);
194 const IsLocTraceLeftAdjacentKey<float> &isLocTraceLeftAdjacentKey);
195#if defined(NEKTAR_ENABLE_DEVICE)
198 const IsLocTraceLeftAdjacentKey<double> &isLocTraceLeftAdjacentKey);
201 const IsLocTraceLeftAdjacentKey<float> &isLocTraceLeftAdjacentKey);
202#endif
203
206 const InterpTraceIndexKey<double> &interpTraceIndexKey);
209 const InterpTraceIndexKey<float> &interpTraceIndexKey);
210#if defined(NEKTAR_ENABLE_DEVICE)
213 const InterpTraceIndexKey<double> &interpTraceIndexKey);
216 const InterpTraceIndexKey<float> &interpTraceIndexKey);
217#endif
218
221 const InterpPointsKey<double> &interpPointsKey);
224 const InterpPointsKey<float> &interpPointsKey);
225#if defined(NEKTAR_ENABLE_DEVICE)
228 const InterpPointsKey<double> &interpPointsKey);
231 const InterpPointsKey<float> &interpPointsKey);
232#endif
233
236 const InterpTypesKey<double> &interpTypesKey);
239 const InterpTypesKey<float> &interpTypesKey);
240#if defined(NEKTAR_ENABLE_DEVICE)
243 const InterpTypesKey<double> &interpTypesKey);
246 const InterpTypesKey<float> &interpTypesKey);
247#endif
248
250 NektarSpaces::HostSpace, double>(const QuadRangeKey<double> &quadRangeKey);
252 NektarSpaces::HostSpace, float>(const QuadRangeKey<float> &quadRangeKey);
253#if defined(NEKTAR_ENABLE_DEVICE)
256 const QuadRangeKey<double> &quadRangeKey);
258 NektarSpaces::DeviceSpace, float>(const QuadRangeKey<float> &quadRangeKey);
259#endif
260
262 Create<NektarSpaces::HostSpace, double>(
263 const InterpTraceKey<double> &interpTraceKey);
265 Create<NektarSpaces::HostSpace, float>(
266 const InterpTraceKey<float> &interpTraceKey);
267#if defined(NEKTAR_ENABLE_DEVICE)
268template LibUtilities::MemoryRegion<InterpLocTraceToTrace> TraceEssentialCreator::
269 Create<NektarSpaces::DeviceSpace, double>(
270 const InterpTraceKey<double> &interpTraceKey);
271template LibUtilities::MemoryRegion<InterpLocTraceToTrace> TraceEssentialCreator::
272 Create<NektarSpaces::DeviceSpace, float>(
273 const InterpTraceKey<float> &interpTraceKey);
274#endif
275
278 const InterpTraceI0Key<double> &interpTraceI0Key);
281 const InterpTraceI0Key<float> &interpTraceI0Key);
282#if defined(NEKTAR_ENABLE_DEVICE)
285 const InterpTraceI0Key<double> &interpTraceI0Key);
288 const InterpTraceI0Key<float> &interpTraceI0Key);
289#endif
290
293 const InterpTraceI0OffsetKey<double> &interpTraceI0OffsetKey);
296 const InterpTraceI0OffsetKey<float> &interpTraceI0OffsetKey);
297#if defined(NEKTAR_ENABLE_DEVICE)
300 const InterpTraceI0OffsetKey<double> &interpTraceI0OffsetKey);
303 const InterpTraceI0OffsetKey<float> &interpTraceI0OffsetKey);
304#endif
305
308 const InterpTraceI1Key<double> &interpTraceI1Key);
311 const InterpTraceI1Key<float> &interpTraceI1Key);
312#if defined(NEKTAR_ENABLE_DEVICE)
315 const InterpTraceI1Key<double> &interpTraceI1Key);
318 const InterpTraceI1Key<float> &interpTraceI1Key);
319#endif
320
323 const InterpTraceI1OffsetKey<double> &interpTraceI1OffsetKey);
326 const InterpTraceI1OffsetKey<float> &interpTraceI1OffsetKey);
327#if defined(NEKTAR_ENABLE_DEVICE)
330 const InterpTraceI1OffsetKey<double> &interpTraceI1OffsetKey);
333 const InterpTraceI1OffsetKey<float> &interpTraceI1OffsetKey);
334#endif
335
336template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
337 Create<NektarSpaces::HostSpace, double>(
338 const InterpFromTraceI0Key<double> &interpFromTraceI0Key);
339template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
340 Create<NektarSpaces::HostSpace, float>(
341 const InterpFromTraceI0Key<float> &interpFromTraceI0Key);
342#if defined(NEKTAR_ENABLE_DEVICE)
343template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
344 Create<NektarSpaces::DeviceSpace, double>(
345 const InterpFromTraceI0Key<double> &interpFromTraceI0Key);
346template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
347 Create<NektarSpaces::DeviceSpace, float>(
348 const InterpFromTraceI0Key<float> &interpFromTraceI0Key);
349#endif
350
351template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
352 Create<NektarSpaces::HostSpace, double>(
353 const InterpFromTraceI1Key<double> &interpFromTraceI1Key);
354template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
355 Create<NektarSpaces::HostSpace, float>(
356 const InterpFromTraceI1Key<float> &interpFromTraceI1Key);
357#if defined(NEKTAR_ENABLE_DEVICE)
358template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
359 Create<NektarSpaces::DeviceSpace, double>(
360 const InterpFromTraceI1Key<double> &interpFromTraceI1Key);
361template LibUtilities::MemoryRegion<DNekMatSharedPtr> TraceEssentialCreator::
362 Create<NektarSpaces::DeviceSpace, float>(
363 const InterpFromTraceI1Key<float> &interpFromTraceI1Key);
364#endif
365
368 const InterpEndPtI0Key<double> &interpEndPtI0Key);
371 const InterpEndPtI0Key<float> &interpEndPtI0Key);
372#if defined(NEKTAR_ENABLE_DEVICE)
375 const InterpEndPtI0Key<double> &interpEndPtI0Key);
378 const InterpEndPtI0Key<float> &interpEndPtI0Key);
379#endif
380
383 const InterpEndPtI0OffsetKey<double> &interpEndPtI0OffsetKey);
386 const InterpEndPtI0OffsetKey<float> &interpEndPtI0OffsetKey);
387#if defined(NEKTAR_ENABLE_DEVICE)
390 const InterpEndPtI0OffsetKey<double> &interpEndPtI0OffsetKey);
393 const InterpEndPtI0OffsetKey<float> &interpEndPtI0OffsetKey);
394#endif
395
398 const InterpEndPtI1Key<double> &interpEndPtI1Key);
401 const InterpEndPtI1Key<float> &interpEndPtI1Key);
402#if defined(NEKTAR_ENABLE_DEVICE)
405 const InterpEndPtI1Key<double> &interpEndPtI1Key);
408 const InterpEndPtI1Key<float> &interpEndPtI1Key);
409#endif
410
413 const InterpEndPtI1OffsetKey<double> &interpEndPtI1OffsetKey);
416 const InterpEndPtI1OffsetKey<float> &interpEndPtI1OffsetKey);
417#if defined(NEKTAR_ENABLE_DEVICE)
420 const InterpEndPtI1OffsetKey<double> &interpEndPtI1OffsetKey);
423 const InterpEndPtI1OffsetKey<float> &interpEndPtI1OffsetKey);
424#endif
425
427 NektarSpaces::HostSpace, double>(const Interp1DKey<double> &interp1DKey);
429 NektarSpaces::HostSpace, float>(const Interp1DKey<float> &interp1DKey);
430#if defined(NEKTAR_ENABLE_DEVICE)
432 NektarSpaces::DeviceSpace, double>(const Interp1DKey<double> &interp1DKey);
434 NektarSpaces::DeviceSpace, float>(const Interp1DKey<float> &interp1DKey);
435#endif
436
438 NektarSpaces::HostSpace, double>(const Interp2DKey<double> &interp2DKey);
440 NektarSpaces::HostSpace, float>(const Interp2DKey<float> &interp2DKey);
441#if defined(NEKTAR_ENABLE_DEVICE)
443 NektarSpaces::DeviceSpace, double>(const Interp2DKey<double> &interp2DKey);
445 NektarSpaces::DeviceSpace, float>(const Interp2DKey<float> &interp2DKey);
446#endif
447
448} // namespace Nektar::MultiRegions
A MemoryRegion represents a memory region.
Outward normals of one boundary region, in that region's boundary expansion layout.
Outward normals of the whole global trace, in trace block layout.
Each element's outward unit normals on its own traces, in the element-local trace layout of one eleme...
LibUtilities::MemoryRegion< unsigned int > Create(const LocTracePhysToElmtMapsKey< TData > &locTracePhysToElmtMapsKey)
The point maps of the element-local traces with nq0 by nq1 points (nq0 points for an edge,...
HostSpace DeviceSpace
Definition Backends.hpp:95