Skip to content

Commit 267d985

Browse files
Apply suggestion from @glwagner
Co-authored-by: Gregory L. Wagner <[email protected]>
1 parent cc6ca11 commit 267d985

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/OceanSeaIceModels/InterfaceComputations/assemble_net_fluxes.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ function compute_net_ocean_fluxes!(coupled_model)
6060
freshwater_flux = atmosphere_fields.Mp.data
6161

6262
ice_concentration = sea_ice_concentration(sea_ice)
63-
ocean_salinity = get_ocean_state(coupled_model.ocean, coupled_model.interfaces.exchanger).S
63+
ocean_state = get_ocean_state(coupled_model.ocean, coupled_model.interfaces.exchanger)
64+
ocean_salinity = ocean_state.S
6465
atmos_ocean_properties = coupled_model.interfaces.atmosphere_ocean_interface.properties
6566
ocean_properties = coupled_model.interfaces.ocean_properties
6667
kernel_parameters = interface_kernel_parameters(grid)

0 commit comments

Comments
 (0)