@@ -541,20 +541,20 @@ subroutine convert_IOB_to_fluxes(IOB, fluxes, index_bounds, Time, valid_time, G,
541541 IOB% fprec(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_fusion
542542 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
543543 endif
544- ! notice minus sign since frunoff is positive into the ocean
545- if (associated (IOB% frunoff)) then
546- fluxes% latent(i,j) = fluxes% latent(i,j) - &
547- IOB% frunoff(i- i0,j- j0) * US% W_m2_to_QRZ_T * CS% latent_heat_fusion
548- fluxes% latent_frunoff_diag(i,j) = - G% mask2dT(i,j) * &
549- IOB% frunoff(i- i0,j- j0) * US% W_m2_to_QRZ_T * CS% latent_heat_fusion
550- endif
551- ! notice minus sign since frunoff_glc is positive into the ocean
552- if (associated (IOB% frunoff_glc)) then
553- fluxes% latent(i,j) = fluxes% latent(i,j) - &
554- IOB% frunoff_glc(i- i0,j- j0) * US% W_m2_to_QRZ_T * CS% latent_heat_fusion
555- fluxes% latent_frunoff_glc_diag(i,j) = fluxes% latent_frunoff_glc_diag(i,j) - G% mask2dT(i,j) * &
556- IOB% frunoff_glc(i- i0,j- j0) * US% W_m2_to_QRZ_T * CS% latent_heat_fusion
557- endif
544+ ! ! notice minus sign since frunoff is positive into the ocean
545+ ! if (associated(IOB%frunoff)) then
546+ ! fluxes%latent(i,j) = fluxes%latent(i,j) - &
547+ ! IOB%frunoff(i-i0,j-j0) * US%W_m2_to_QRZ_T * CS%latent_heat_fusion
548+ ! fluxes%latent_frunoff_diag(i,j) = - G%mask2dT(i,j) * &
549+ ! IOB%frunoff(i-i0,j-j0) * US%W_m2_to_QRZ_T * CS%latent_heat_fusion
550+ ! endif
551+ ! ! notice minus sign since frunoff_glc is positive into the ocean
552+ ! if (associated(IOB%frunoff_glc)) then
553+ ! fluxes%latent(i,j) = fluxes%latent(i,j) - &
554+ ! IOB%frunoff_glc(i-i0,j-j0) * US%W_m2_to_QRZ_T * CS%latent_heat_fusion
555+ ! fluxes%latent_frunoff_glc_diag(i,j) = fluxes%latent_frunoff_glc_diag(i,j) - G%mask2dT(i,j) * &
556+ ! IOB%frunoff_glc(i-i0,j-j0) * US%W_m2_to_QRZ_T * CS%latent_heat_fusion
557+ ! endif
558558 if (associated (IOB% q_flux)) then
559559 fluxes% latent(i,j) = fluxes% latent(i,j) + &
560560 IOB% q_flux(i- i0,j- j0)* US% W_m2_to_QRZ_T* CS% latent_heat_vapor
0 commit comments