Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning for Julia version >= v1.11 #4109

Merged
merged 5 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ SparseArrays = "1.9"
Statistics = "1.9"
StructArrays = "0.4, 0.5, 0.6, 0.7"
TimesDates = "0.3"
julia = "1.9"
julia = "1.9 - 1.10"

[extras]
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
Expand Down
7 changes: 7 additions & 0 deletions src/Oceananigans.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ using DocStringExtensions
using FFTW

function __init__()
if VERSION >= v"1.11.0"
@info "Warning: You are using Julia v1.11 or later!"
@info " Oceananigans is currently tested on Julia v1.10."
@info " If you find issues with Julia v1.11 or later,"
@info " please report at https://github.com/CliMA/Oceananigans.jl/issues/new"
end

threads = Threads.nthreads()
if threads > 1
@info "Oceananigans will use $threads threads"
Expand Down