Skip to content

Commit

Permalink
Include background velocity in advection timescale (#3362)
Browse files Browse the repository at this point in the history
Co-authored-by: Gregory L. Wagner <[email protected]>
  • Loading branch information
zhihua-zheng and glwagner authored Nov 3, 2023
1 parent 1073cb1 commit 33964d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Models/NonhydrostaticModels/NonhydrostaticModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ include("set_nonhydrostatic_model.jl")
##### AbstractModel interface
#####

cell_advection_timescale(model::NonhydrostaticModel) = cell_advection_timescale(model.grid, model.velocities)
function cell_advection_timescale(model::NonhydrostaticModel)
grid = model.grid
velocities = total_velocities(model)
return cell_advection_timescale(grid, velocities)
end

"""
fields(model::NonhydrostaticModel)
Expand Down

0 comments on commit 33964d7

Please sign in to comment.