Skip to content

Commit

Permalink
Merge pull request #107 from FourierFlows/small-fix
Browse files Browse the repository at this point in the history
Small fix -- adds CUDA.@allowscalar in enstrophy_dissipation()
  • Loading branch information
navidcy authored Sep 11, 2020
2 parents e8c39e4 + 0c1fb24 commit 5f7795c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twodnavierstokes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Returns the domain-averaged dissipation rate of enstrophy. nν must be >= 1.
@inline function enstrophy_dissipation(prob)
sol, vars, params, grid = prob.sol, prob.vars, prob.params, prob.grid
@. vars.uh = grid.Krsq^params.* abs2(sol)
vars.uh[1, 1] = 0
CUDA.@allowscalar vars.uh[1, 1] = 0
return params.ν / (grid.Lx * grid.Ly) * parsevalsum(vars.uh, grid)
end

Expand Down

0 comments on commit 5f7795c

Please sign in to comment.