Skip to content

Commit 50861af

Browse files
Update interpolate_atmospheric_state.jl
1 parent d47961f commit 50861af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OceanSeaIceModels/InterfaceComputations/interpolate_atmospheric_state.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ function interpolate_atmosphere_state!(interfaces, atmosphere::PrescribedAtmosph
111111
#
112112
# TODO: find a better design for this that doesn't have redundant
113113
# arrays for the barotropic potential
114-
u_potential = forcing_barotropic_potential(ocean)
115-
v_potential = forcing_barotropic_potential(ocean)
114+
u_potential = forcing_barotropic_potential(ocean.model.forcing.u)
115+
v_potential = forcing_barotropic_potential(ocean.model.forcing.v)
116116
ρₒ = coupled_model.interfaces.ocean_properties.reference_density
117117

118118
if !isnothing(u_potential)

0 commit comments

Comments
 (0)