Skip to content

Commit

Permalink
SVector
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenka Novakova committed May 18, 2024
1 parent c4caa14 commit 80f1bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experiments/ClimaEarth/user_io/debug_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ end
Return the minimum and maximum values of a field as a string.
"""
function print_extrema(field::Union{CC.Fields.Field, Vector})
function print_extrema(field::Union{CC.Fields.Field, Vector, StaticArrays.SVector})
ext_vals = extrema(field)
min = Printf.@sprintf("%.2E", ext_vals[1])
max = Printf.@sprintf("%.2E", ext_vals[2])
Expand Down

0 comments on commit 80f1bf2

Please sign in to comment.