Skip to content

Commit e638a1f

Browse files
committed
renaming
1 parent c52003e commit e638a1f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/pmpo_MPMesh_assembly.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ DoubleView MPMesh::wtScaAssembly(){
245245
Vec2d mpCoord(mpPositions(mp,0), mpPositions(mp,1));
246246
getBasisByAreaGblForm(mpCoord, nElmVtxs, eVtxCoords, basisByArea);
247247

248-
/* get the mp's property that is assebled to vertices */
249-
double assValue = mpData(mp, 0); // ??? for scalar mp data, is index 0 always?
248+
/* get the mp's property that is assembled to vertices */
249+
double assemVal = mpData(mp, 0); // ??? for scalar mp data, is index 0 always?
250250

251251
/* accumulate the mp's property to vertices */
252252
for (int i = 0; i < nElmVtxs; i++) {
253253
int vID = elm2VtxConn(elm,i+1)-1;
254-
Kokkos::atomic_add(&vField(vID), assValue * basisByArea[i]);
254+
Kokkos::atomic_add(&vField(vID), assemVal * basisByArea[i]);
255255
}
256256
}
257257
};
@@ -295,15 +295,15 @@ Vec2dView MPMesh::wtVec2Assembly(){
295295
double mpVolume = 1.0; // TODO: change to mp's volume here
296296

297297
/* get the mp's property to be assembled */
298-
Vec2d assValue;
299-
assValue[0] = mpData(mp, 0) * mpVolume;
300-
assValue[1] = mpData(mp, 1) * mpVolume;
298+
Vec2d assemVal;
299+
assemVal[0] = mpData(mp, 0) * mpVolume;
300+
assemVal[1] = mpData(mp, 1) * mpVolume;
301301

302302
/* accumulate the mp's constructed quantities to the cell vertices */
303303
for (int i = 0; i < nElmVtxs; i++) {
304304
int vID = elm2VtxConn(elm,i+1)-1;
305-
Kokkos::atomic_add(&(vField(vID)[0]), assValue[0] * basisByArea[i]);
306-
Kokkos::atomic_add(&(vField(vID)[1]), assValue[1] * basisByArea[i]);
305+
Kokkos::atomic_add(&(vField(vID)[0]), assemVal[0] * basisByArea[i]);
306+
Kokkos::atomic_add(&(vField(vID)[1]), assemVal[1] * basisByArea[i]);
307307
}
308308
}
309309
};

0 commit comments

Comments
 (0)