-
Notifications
You must be signed in to change notification settings - Fork 237
Can't run examples #254
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
Labels
bug 🐞
Even a perfect program still has bugs
Comments
Merged
Ah woops, sorry! Embarrassing mistake on my part. I cleaned up the Thanks for posting this! Should be fixed now (#255). |
Now I get this... julia> include("internal_wave.jl")
[ Info: Recompiling stale cache file /Users/navid/.julia/compiled/v1.1/Plots/ld3vC.ji for Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
σ / f = 1.0456506175619953
ERROR: LoadError: DimensionMismatch("array could not be broadcast to match destination")
Stacktrace:
[1] check_broadcast_shape at ./broadcast.jl:456 [inlined]
[2] check_broadcast_axes at ./broadcast.jl:459 [inlined]
[3] check_broadcast_axes at ./broadcast.jl:462 [inlined]
[4] instantiate at ./broadcast.jl:258 [inlined]
[5] materialize!(::OffsetArrays.OffsetArray{Float64,3,Array{Float64,3}}, ::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{3},Nothing,typeof(u₀),Tuple{Array{Float64,3},Array{Float64,3},Array{Float64,3}}}) at ./broadcast.jl:756
[6] #set_ic!#3(::Function, ::Function, ::Function, ::Function, ::Function, ::Function, ::Model{CPU,RegularCartesianGrid{Float64,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},Oceananigans.TurbulenceClosures.ConstantAnisotropicDiffusivity{Float64},Float64}) at /Users/navid/Research/Oceananigans.jl/examples/utils.jl:17
[7] (::getfield(Main, Symbol("#kw##set_ic!")))(::NamedTuple{(:u, :v, :w, :T),Tuple{typeof(u₀),typeof(v₀),typeof(w₀),typeof(T₀)}}, ::typeof(set_ic!), ::Model{CPU,RegularCartesianGrid{Float64,StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},Oceananigans.TurbulenceClosures.ConstantAnisotropicDiffusivity{Float64},Float64}) at ./none:0
[8] top-level scope at none:0
[9] include at ./boot.jl:326 [inlined]
[10] include_relative(::Module, ::String) at ./loading.jl:1038
[11] include(::Module, ::String) at ./sysimg.jl:29
[12] include(::String) at ./client.jl:403
[13] top-level scope at none:0
in expression starting at /Users/navid/Research/Oceananigans.jl/examples/internal_wave.jl:110 |
Ah I think we forgot to update the example when we merged in the halo regions feature yesterday... Should be able to fix this in a few minutes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Am I doing something wrong?
I guess the problem is the
include("utils.jl")
line found in all example .jl scripts. Is this supposed to besrc/utils.jl
?The text was updated successfully, but these errors were encountered: