Skip to content

Commit

Permalink
adapt initialize!(::Leapfrog) accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Jan 17, 2024
1 parent 83f1fe4 commit 486da34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dynamics/spectral_grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function Base.show(io::IO,SG::SpectralGrid)
lat = get_lat(Grid,nlat_half)
res_eq_y = (lat[nlat_half] - lat[nlat_half+1])*radius/1000

s(x) = @sprintf("%.3g",x)
s(x) = x > 1000 ? @sprintf("%i",x) : @sprintf("%.3g",x)

println(io,"$(typeof(SG)):")
println(io,"├ Spectral: T$trunc LowerTriangularMatrix{Complex{$NF}}, radius = $radius m")
Expand Down
2 changes: 1 addition & 1 deletion src/dynamics/time_integration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function initialize!(L::Leapfrog,model::ModelSetup)

if L.adjust_with_output
# take actual output dt from model.output and recalculate timestep
L.Δt_millisec = get_Δt_millisec(L.Δt_at_T31, L.trunc, L.adjust_with_output, output_dt)
L.Δt_millisec = get_Δt_millisec(L.Δt_at_T31, L.trunc, L.radius, L.adjust_with_output, output_dt)
L.Δt_sec = L.Δt_millisec.value/1000
L.Δt = L.Δt_sec/L.radius
end
Expand Down

0 comments on commit 486da34

Please sign in to comment.