Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
LenkaNovak committed Oct 11, 2023
1 parent 36429e9 commit 4238402
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/surface_conditions/surface_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ surface_state(
# conditions, but without throwing an error during the computation of
# precomputed quantities for diagnostic EDMF due to uninitialized surface
# conditions.
# TODO: Refactor the surface conditions API to avoid needing to do this.
# TODO: Refactor the surface conditions API to avoid needing to do this.
function set_dummy_surface_conditions!(p)
(; sfc_conditions, params, atmos) = p
FT = eltype(params)
Expand Down Expand Up @@ -168,7 +168,7 @@ function surface_state_to_conditions(
coordinates isa Geometry.LatLongPoint
)
if atmos.sfc_temperature isa ZonallyAsymmetricSST
#Assume a surface temperature that varies with both longitude and latitude, Neale and Hoskins, 2021
#Assume a surface temperature that varies with both longitude and latitude, Neale and Hoskins, 2021
T =
(
(-60 < coordinates.lat < 60) ?
Expand Down Expand Up @@ -352,7 +352,7 @@ function surface_state_to_conditions(
end

return atmos_surface_conditions(
SF.surface_conditions(surface_params, inputs),
SF.surface_conditions(surface_params, inputs, scheme = SF.FDScheme()),
ts,
surface_local_geometry,
atmos,
Expand Down
6 changes: 5 additions & 1 deletion test/coupler_compatibility.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ end
FT(gustiness),
FT(beta),
)
return SF.surface_conditions(surface_params, surface_inputs)
return SF.surface_conditions(
surface_params,
surface_inputs,
scheme = SF.FDScheme(),
)
end

# Test that set_surface_conditions! can be used to update the surface
Expand Down

0 comments on commit 4238402

Please sign in to comment.