Skip to content

Commit

Permalink
Merge pull request #208 from FourierFlows/ncc/multilayerqg-gpu-warning
Browse files Browse the repository at this point in the history
Warning when user wants MultiLayerQG on the GPU
  • Loading branch information
navidcy authored Mar 7, 2021
2 parents 1439a25 + b1394b4 commit 319c0da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/multilayerqg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ function Problem(nlayers::Int, # number of fluid layers
linear = false,
T = Float64)

if dev == GPU()
@warn """MultiLayerQG module not well optimized on the GPU yet.
See issue on Github at https://github.com/FourierFlows/GeophysicalFlows.jl/issues/112.
For now, we suggest running MultiLayerQG on CPUs only."""
end

# topographic PV
eta === nothing && (eta = zeros(dev, T, (nx, ny)))

Expand Down

0 comments on commit 319c0da

Please sign in to comment.