@@ -41,7 +41,7 @@ struct PrecomputeSourceAndReceiverKernel
41
41
* @param[in] size the number of cells in the subRegion
42
42
* @param[in] numNodesPerElem number of nodes per element
43
43
* @param[in] numFacesPerElem number of faces per element
44
- * @param[in] X coordinates of the nodes
44
+ * @param[in] nodeCoords coordinates of the nodes
45
45
* @param[in] elemGhostRank rank of the ghost element
46
46
* @param[in] elemsToNodes map from element to nodes
47
47
* @param[in] elemsToFaces map from element to faces
@@ -70,7 +70,7 @@ struct PrecomputeSourceAndReceiverKernel
70
70
localIndex const regionIndex,
71
71
localIndex const numNodesPerElem,
72
72
localIndex const numFacesPerElem,
73
- arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const X ,
73
+ arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const nodeCoords ,
74
74
arrayView1d< integer const > const elemGhostRank,
75
75
arrayView2d< localIndex const , cells::NODE_MAP_USD > const & elemsToNodes,
76
76
arrayView2d< localIndex const > const elemsToFaces,
@@ -127,7 +127,7 @@ struct PrecomputeSourceAndReceiverKernel
127
127
128
128
WaveSolverUtils::computeCoordinatesOnReferenceElement< FE_TYPE >( coords,
129
129
elemsToNodes[k],
130
- X ,
130
+ nodeCoords ,
131
131
coordsOnRefElem );
132
132
133
133
sourceIsAccessible[isrc] = 1 ;
@@ -175,7 +175,7 @@ struct PrecomputeSourceAndReceiverKernel
175
175
{
176
176
WaveSolverUtils::computeCoordinatesOnReferenceElement< FE_TYPE >( coords,
177
177
elemsToNodes[k],
178
- X ,
178
+ nodeCoords ,
179
179
coordsOnRefElem );
180
180
receiverIsLocal[ircv] = 1 ;
181
181
rcvElem[ircv] = k;
@@ -211,7 +211,7 @@ struct MassMatrixKernel
211
211
* @tparam EXEC_POLICY the execution policy
212
212
* @tparam ATOMIC_POLICY the atomic policy
213
213
* @param[in] size the number of cells in the subRegion
214
- * @param[in] X coordinates of the nodes
214
+ * @param[in] nodeCoords coordinates of the nodes
215
215
* @param[in] elemsToNodes map from element to nodes
216
216
* @param[in] velocity cell-wise velocity
217
217
* @param[in] density cell-wise density
@@ -220,7 +220,7 @@ struct MassMatrixKernel
220
220
template < typename EXEC_POLICY, typename ATOMIC_POLICY >
221
221
void
222
222
launch ( localIndex const size,
223
- arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const X ,
223
+ arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const nodeCoords ,
224
224
arrayView2d< localIndex const , cells::NODE_MAP_USD > const elemsToNodes,
225
225
arrayView1d< real32 const > const velocity,
226
226
arrayView1d< real32 const > const density,
@@ -239,7 +239,7 @@ struct MassMatrixKernel
239
239
{
240
240
for ( localIndex i = 0 ; i < 3 ; ++i )
241
241
{
242
- xLocal[a][i] = X ( elemsToNodes ( k, a ), i );
242
+ xLocal[a][i] = nodeCoords ( elemsToNodes ( k, a ), i );
243
243
}
244
244
}
245
245
@@ -337,7 +337,7 @@ struct VelocityComputation
337
337
* @tparam EXEC_POLICY the execution policy
338
338
* @tparam ATOMIC_POLICY the atomic policy
339
339
* @param[in] size the number of cells in the subRegion
340
- * @param[in] X coordinates of the nodes
340
+ * @param[in] nodeCoords coordinates of the nodes
341
341
* @param[in] elemsToNodes map from element to nodes
342
342
* @param[in] p_np1 pressure array (only used here)
343
343
* @param[in] dt time-step
@@ -348,7 +348,7 @@ struct VelocityComputation
348
348
template < typename EXEC_POLICY, typename ATOMIC_POLICY >
349
349
void
350
350
launch ( localIndex const size,
351
- arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const X ,
351
+ arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const nodeCoords ,
352
352
arrayView2d< localIndex const , cells::NODE_MAP_USD > const elemsToNodes,
353
353
arrayView1d< real32 const > const p_np1,
354
354
arrayView1d< real32 const > const density,
@@ -367,7 +367,7 @@ struct VelocityComputation
367
367
{
368
368
for ( localIndex i=0 ; i<3 ; ++i )
369
369
{
370
- xLocal[a][i] = X ( elemsToNodes ( k, a ), i );
370
+ xLocal[a][i] = nodeCoords ( elemsToNodes ( k, a ), i );
371
371
}
372
372
}
373
373
@@ -447,7 +447,7 @@ struct PressureComputation
447
447
* @param[in] size the number of cells in the subRegion
448
448
* @param[in] regionIndex Index of the subregion
449
449
* @param[in] size_node the number of nodes in the subRegion
450
- * @param[in] X coordinates of the nodes
450
+ * @param[in] nodeCoords coordinates of the nodes
451
451
* @param[in] elemsToNodes map from element to nodes
452
452
* @param[out] velocity_x velocity array in the x direction (only used here)
453
453
* @param[out] velocity_y velocity array in the y direction (only used here)
@@ -468,7 +468,7 @@ struct PressureComputation
468
468
launch ( localIndex const size,
469
469
localIndex const regionIndex,
470
470
localIndex const size_node,
471
- arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const X ,
471
+ arrayView2d< WaveSolverBase::wsCoordType const , nodes::REFERENCE_POSITION_USD > const nodeCoords ,
472
472
arrayView2d< localIndex const , cells::NODE_MAP_USD > const elemsToNodes,
473
473
arrayView2d< real32 const > const velocity_x,
474
474
arrayView2d< real32 const > const velocity_y,
@@ -502,7 +502,7 @@ struct PressureComputation
502
502
{
503
503
for ( localIndex i=0 ; i<3 ; ++i )
504
504
{
505
- xLocal[a][i] = X ( elemsToNodes ( k, a ), i );
505
+ xLocal[a][i] = nodeCoords ( elemsToNodes ( k, a ), i );
506
506
}
507
507
}
508
508
0 commit comments