Skip to content

Commit

Permalink
correct (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri authored Jan 5, 2025
1 parent c6bffe7 commit 048c893
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ end

@inbounds begin
# +0: cooling, -0: heating
Qv[i, j, 1] = ifelse(inactive, 0, turbulent_fluxes.latent_heat)
Qc[i, j, 1] = ifelse(inactive, 0, turbulent_fluxes.sensible_heat)
Fv[i, j, 1] = ifelse(inactive, 0, turbulent_fluxes.water_vapor)
ρτx[i, j, 1] = ifelse(inactive, 0, turbulent_fluxes.x_momentum)
ρτy[i, j, 1] = ifelse(inactive, 0, turbulent_fluxes.y_momentum)
Qv[i, j, 1] = ifelse(inactive, zero(grid), turbulent_fluxes.latent_heat)
Qc[i, j, 1] = ifelse(inactive, zero(grid), turbulent_fluxes.sensible_heat)
Fv[i, j, 1] = ifelse(inactive, zero(grid), turbulent_fluxes.water_vapor)
ρτx[i, j, 1] = ifelse(inactive, zero(grid), turbulent_fluxes.x_momentum)
ρτy[i, j, 1] = ifelse(inactive, zero(grid), turbulent_fluxes.y_momentum)
Ts[i, j, 1] = surface_temperature
end
end
Expand Down Expand Up @@ -433,10 +433,10 @@ end
inactive = inactive_node(i, j, kᴺ, grid, c, c, c)

@inbounds begin
τx[i, j, 1] = ifelse(inactive, 0, atmos_ocean_τx)
τy[i, j, 1] = ifelse(inactive, 0, atmos_ocean_τy)
Jᵀ[i, j, 1] = ifelse(inactive, 0, atmos_ocean_Jᵀ)
Jˢ[i, j, 1] = ifelse(inactive, 0, atmos_ocean_Jˢ)
τx[i, j, 1] = ifelse(inactive, zero(grid), atmos_ocean_τx)
τy[i, j, 1] = ifelse(inactive, zero(grid), atmos_ocean_τy)
Jᵀ[i, j, 1] = ifelse(inactive, zero(grid), atmos_ocean_Jᵀ)
Jˢ[i, j, 1] = ifelse(inactive, zero(grid), atmos_ocean_Jˢ)
end
end

Expand Down

0 comments on commit 048c893

Please sign in to comment.