Skip to content

Commit efe9262

Browse files
committed
Apply review requets and fix MOM6 CI errors
1 parent 527aa34 commit efe9262

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/core/MOM_forcing_type.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2492,7 +2492,8 @@ subroutine fluxes_accumulate(flux_tmp, fluxes, G, wt2, forces)
24922492
endif
24932493
if (associated(fluxes%carbon_content_lrunoff) .and. associated(flux_tmp%carbon_content_lrunoff)) then
24942494
do j=js,je ; do i=is,ie
2495-
fluxes%carbon_content_lrunoff(i,j) = wt1*fluxes%carbon_content_lrunoff(i,j) + wt2*flux_tmp%carbon_content_lrunoff(i,j)
2495+
fluxes%carbon_content_lrunoff(i,j) = wt1*fluxes%carbon_content_lrunoff(i,j) + &
2496+
wt2*flux_tmp%carbon_content_lrunoff(i,j)
24962497
enddo ; enddo
24972498
endif
24982499

@@ -3745,7 +3746,7 @@ subroutine get_forcing_groups(fluxes, water, heat, ustar, tau_mag, press, shelf,
37453746
iceberg = associated(fluxes%ustar_berg)
37463747
heat_added = associated(fluxes%heat_added)
37473748
buoy = associated(fluxes%buoy)
3748-
carbon = associated(fluxes%carbon_content_lrunoff)
3749+
if(present(carbon)) carbon = associated(fluxes%carbon_content_lrunoff)
37493750
end subroutine get_forcing_groups
37503751

37513752

0 commit comments

Comments
 (0)