Skip to content

Commit

Permalink
add kw arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri committed Jan 23, 2025
1 parent f09bb82 commit f0e4273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BuoyancyFormulations/buoyancy_force.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ Adapt.adapt_structure(to, bf::BuoyancyForce) =

@inline top_buoyancy_flux(i, j, grid, b::BuoyancyForce, args...) = top_buoyancy_flux(i, j, grid, b.formulation, args...)

regularize_buoyancy(bf, grid) = bf
regularize_buoyancy(formulation::AbstractBuoyancyFormulation, grid) = BuoyancyForce(grid; formulation)
regularize_buoyancy(bf, grid; kw...) = bf
regularize_buoyancy(formulation::AbstractBuoyancyFormulation, grid; kw...) = BuoyancyForce(grid; formulation; kw...)

# Fallback
compute_buoyancy_gradients!(::BuoyancyForce{<:Any, <:Any, <:Nothing}, grid, tracers; kw...) = nothing
Expand Down

0 comments on commit f0e4273

Please sign in to comment.