Skip to content

Commit

Permalink
Add check (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored Jan 22, 2024
1 parent 3db75ef commit ec631ef
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions generic_tracers/generic_COBALT.F90
Original file line number Diff line number Diff line change
Expand Up @@ -9764,12 +9764,14 @@ subroutine generic_COBALT_update_from_source(tracer_list,Temp,Salt,tv,rho_dzt,dz
!
! Iceberg and "Coastal" iron and other nutrient input
!
do j = jsc, jec ; do i = isc, iec
cobalt%jfe_iceberg(i,j,1) = cobalt%jfe_iceberg_ratio*max(frunoff(i,j),0.0)/rho_dzt(i,j,1)
cobalt%jno3_iceberg(i,j,1) = cobalt%jno3_iceberg_ratio*max(frunoff(i,j),0.0)/rho_dzt(i,j,1)
cobalt%jpo4_iceberg(i,j,1) = cobalt%jpo4_iceberg_ratio*max(frunoff(i,j),0.0)/rho_dzt(i,j,1)
cobalt%jfe_coast(i,j,1) = cobalt%fe_coast * mask_coast(i,j) * grid_tmask(i,j,1) / &
sqrt(grid_dat(i,j))
do j = jsc, jec ; do i = isc, iec !{
if (grid_kmt(i,j) .gt. 0) then !{
cobalt%jfe_iceberg(i,j,1) = cobalt%jfe_iceberg_ratio*max(frunoff(i,j),0.0)/rho_dzt(i,j,1)
cobalt%jno3_iceberg(i,j,1) = cobalt%jno3_iceberg_ratio*max(frunoff(i,j),0.0)/rho_dzt(i,j,1)
cobalt%jpo4_iceberg(i,j,1) = cobalt%jpo4_iceberg_ratio*max(frunoff(i,j),0.0)/rho_dzt(i,j,1)
cobalt%jfe_coast(i,j,1) = cobalt%fe_coast * mask_coast(i,j) * grid_tmask(i,j,1) / &
sqrt(grid_dat(i,j))
endif !}
enddo; enddo !} i,j
do k = 2, nk ; do j = jsc, jec ; do i = isc, iec !{
cobalt%jfe_coast(i,j,k) = cobalt%fe_coast * mask_coast(i,j) * grid_tmask(i,j,k) / &
Expand Down

0 comments on commit ec631ef

Please sign in to comment.