From 14a760734e18be37a707371b418a0ec0d313e2d5 Mon Sep 17 00:00:00 2001 From: LenkaNovak Date: Wed, 11 Oct 2023 14:43:48 -0700 Subject: [PATCH] init change scheme --- src/surface_conditions/surface_conditions.jl | 6 +++--- test/coupler_compatibility.jl | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/surface_conditions/surface_conditions.jl b/src/surface_conditions/surface_conditions.jl index c469e59a65..d53413438b 100644 --- a/src/surface_conditions/surface_conditions.jl +++ b/src/surface_conditions/surface_conditions.jl @@ -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) @@ -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) ? @@ -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, SF.FDScheme()), ts, surface_local_geometry, atmos, diff --git a/test/coupler_compatibility.jl b/test/coupler_compatibility.jl index e8fb1b31fa..dfc6fc1bf9 100644 --- a/test/coupler_compatibility.jl +++ b/test/coupler_compatibility.jl @@ -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, + SF.FDScheme(), + ) end # Test that set_surface_conditions! can be used to update the surface