8383@inline get_radiative_forcing (ocean:: VerosOceanSimulation ) = nothing
8484
8585function fill_up_net_fluxes! (ocean:: VerosOceanSimulation , net_ocean_fluxes)
86- nx = pyconvert (Int, ocean. setup. state. settings. nx)
87- ny = pyconvert (Int, ocean. setup. state. settings. ny)
88- t1 = parent (net_ocean_fluxes. u)[: , 1 : 44 , 1 ]
89- t2 = parent (net_ocean_fluxes. v)[: , 1 : 44 , 1 ]
86+ nx = pyconvert (Int, ocean. setup. state. settings. nx) + 4
87+ ny = pyconvert (Int, ocean. setup. state. settings. ny) + 4
88+ t1 = view ( parent (net_ocean_fluxes. u), 1 : nx , 1 : ny , 1 )
89+ t2 = view ( parent (net_ocean_fluxes. v), 1 : nx , 1 : ny , 1 )
9090
91+ # TODO : Remove this when they fix veros to
92+ # be able to force with an array instead of Climatology
9193 ta = zeros (size (t1)... , 12 )
9294 tb = zeros (size (t2)... , 12 )
9395 for t in 1 : 12
@@ -97,5 +99,16 @@ function fill_up_net_fluxes!(ocean::VerosOceanSimulation, net_ocean_fluxes)
9799
98100 veros_set! (ocean, " taux" , ta)
99101 veros_set! (ocean, " tauy" , tb)
102+
103+ # TODO : Add heat flux and salinity flux when they
104+ # fix veros to be able to force with prescribed boundary
105+ # conditions rather than restoring
106+
107+ # t1 = view(parent(net_ocean_fluxes.T), 1:nx, 2:ny+1, 1)
108+ # t2 = view(parent(net_ocean_fluxes.S), 1:nx, 2:ny+1, 1)
109+
110+ # veros_set!(ocean, "temp_flux", t1)
111+ # veros_set!(ocean, "salt_flux", t2)
112+
100113 return nothing
101114end
0 commit comments