@@ -75,8 +75,10 @@ subroutine tavg_i2o_fluxes
7575 iomelt (:,:,:) = iomelt (:,:,:) + tiomelt (:,:,:)* coef_ic
7676 ioform (:,:,:) = ioform (:,:,:) + tioform (:,:,:)* coef_ic
7777 iownd (:,:,:) = iownd (:,:,:) + tiownd (:,:,:)* coef_ic
78- ionit (:,:,:) = ionit (:,:,:) + tionit (:,:,:)* coef_ic
79- ioalg (:,:,:) = ioalg (:,:,:) + tioalg (:,:,:)* coef_ic
78+ if (skl_bgc) then
79+ ionit (:,:,:) = ionit (:,:,:) + tionit (:,:,:)* coef_ic
80+ ioalg (:,:,:) = ioalg (:,:,:) + tioalg (:,:,:)* coef_ic
81+ endif
8082 iolicefw (:,:,:) = iolicefw (:,:,:) + tiolicefw (:,:,:)* coef_ic
8183 iolicefh (:,:,:) = iolicefh (:,:,:) + tiolicefh (:,:,:)* coef_ic
8284
@@ -372,8 +374,10 @@ subroutine newt_forcing_raw
372374 sst = sst - 273.15
373375endif
374376sss(:,:,:) = ssso(:,:,:)
375- ocean_bio(:,:,nlt_bgc_NO,:) = ssn(:,:,:)
376- ocean_bio(:,:,nlt_bgc_N,:) = ssalg(:,:,:)
377+ if (skl_bgc) then
378+ ocean_bio(:,:,nlt_bgc_NO,:) = ssn(:,:,:)
379+ ocean_bio(:,:,nlt_bgc_N,:) = ssalg(:,:,:)
380+ endif
377381ss_tltx(:,:,:) = sslx(:,:,:)
378382ss_tlty(:,:,:) = ssly(:,:,:)
379383! frzmlt(:,:,:) = pfmice(:,:,:) * frazil_factor / dt_cpl_io !W/m^2 as required by cice.
@@ -816,10 +820,12 @@ subroutine get_i2o_fluxes
816820 tioform(:,:,:) = min (0.0 ,fresh(:,:,:))
817821! 16 10m wind. To mask or not to mask?
818822 tiownd(:,:,:) = sqrt (uatm(:,:,:)** 2 + vatm(:,:,:)** 2 )
819- ! 17 ice-water nitrate flux (mmol/m2/s)
820- tionit(:,:,:) = flux_bio(:,:,nlt_bgc_NO,:)
821- ! 18 ice-to-ocean algal flux (mmol/m2/2)
822- tioalg(:,:,:) = flux_bio(:,:,nlt_bgc_N,:)
823+ if (skl_bgc) then
824+ ! 17 ice-water nitrate flux (mmol/m2/s)
825+ tionit(:,:,:) = flux_bio(:,:,nlt_bgc_NO,:)
826+ ! 18 ice-to-ocean algal flux (mmol/m2/2)
827+ tioalg(:,:,:) = flux_bio(:,:,nlt_bgc_N,:)
828+ endif
823829return
824830end subroutine get_i2o_fluxes
825831
0 commit comments