Skip to content

Commit

Permalink
[CUDA] Update CudaHexahedronTLEDForceField.cpp (#5085)
Browse files Browse the repository at this point in the history
remove shadow varaible
  • Loading branch information
maddin200 authored Oct 30, 2024
1 parent ef6e906 commit ea7f52a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ void CudaHexahedronTLEDForceField::ComputeHGParams(const Element& e, const VecCo
{
for (int j = 0; j < 4; j++)
{
for (int k = 0; k < 8; k++)
for (int kk = 0; kk < 8; kk++)
{
gamma[i][j] += A[i][k]*Gamma[k][j];
gamma[i][j] += A[i][kk]*Gamma[kk][j];
}
}
}
Expand All @@ -748,9 +748,9 @@ void CudaHexahedronTLEDForceField::ComputeHGParams(const Element& e, const VecCo
{
for (int j = 0; j < 8; j++)
{
for (int k = 0; k < 4; k++)
for (int kk = 0; kk < 4; kk++)
{
HG[i][j] += gamma[i][k]*gamma[j][k];
HG[i][j] += gamma[i][kk]*gamma[j][kk];
}
}
}
Expand Down

0 comments on commit ea7f52a

Please sign in to comment.