@@ -486,17 +486,17 @@ subroutine convert_IOB_to_fluxes(IOB, fluxes, index_bounds, Time, valid_time, G,
486486
487487 ! latent heat flux (W/m^2)
488488 fluxes% latent(i,j) = 0.0
489- ! contribution from frozen ppt
489+ ! contribution from frozen ppt (notice minus sign since fprec is positive into the ocean)
490490 if (associated (IOB% fprec)) then
491- fluxes% latent(i,j) = fluxes% latent(i,j) + &
491+ fluxes% latent(i,j) = fluxes% latent(i,j) - &
492492 IOB% fprec(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_fusion
493- fluxes% latent_fprec_diag(i,j) = G% mask2dT(i,j) * IOB% fprec(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_fusion
493+ fluxes% latent_fprec_diag(i,j) = - G% mask2dT(i,j) * IOB% fprec(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_fusion
494494 endif
495- ! contribution from frozen runoff
495+ ! contribution from frozen runoff (notice minus sign since rofi_flux is positive into the ocean)
496496 if (associated (fluxes% frunoff)) then
497- fluxes% latent(i,j) = fluxes% latent(i,j) + &
497+ fluxes% latent(i,j) = fluxes% latent(i,j) - &
498498 IOB% rofi_flux(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_fusion
499- fluxes% latent_frunoff_diag(i,j) = G% mask2dT(i,j) * IOB% rofi_flux(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_fusion
499+ fluxes% latent_frunoff_diag(i,j) = - G% mask2dT(i,j) * IOB% rofi_flux(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_fusion
500500 endif
501501 ! contribution from evaporation
502502 if (associated (IOB% q_flux)) then
0 commit comments