Skip to content

Commit

Permalink
Update OperatorKernel.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
OsKnoth committed Oct 11, 2023
1 parent c3357cd commit 9fb7330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GPU/OperatorKernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ end
Izm1 = max(Iz - 1,1)
cCol[I,J,iz] = U[Izm1,ind,5] / U[Izm1,ind,1]
end
if iz == ColumnTilesDim || Iz = Nz
if iz == ColumnTilesDim || Iz == Nz
Izp1 = min(Iz + 1,Nz)
cCol[I,J,iz+2] = U[Izp1,ind,5] / U[Izp1,ind,1]
Izp2 = min(Iz + 2,Nz)
Expand Down Expand Up @@ -902,7 +902,7 @@ end
@inbounds DivRho = D[I,1] * uConCol[1,J,iz]
@inbounds DivRho += D[J,1] * vConCol[I,1,iz]
@inbounds DivRhoTr = D[I,1] * uConCol[1,J,iz] * cCol[1,J,iz+1]
@inbounds DivRhoTr += D[J,1] * vConCol[I,1,iz] * cCol[I,1,iz]
@inbounds DivRhoTr += D[J,1] * vConCol[I,1,iz] * cCol[I,1,iz+1]
for k = 2 : N
@inbounds DivRho += D[I,k] * uConCol[k,J,iz]
@inbounds DivRho += D[J,k] * vConCol[I,k,iz]
Expand Down

0 comments on commit 9fb7330

Please sign in to comment.