Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial modifications for standalone Icepack bgc capability #37

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions columnphysics/icepack_algae.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1879,11 +1879,15 @@ subroutine algal_dyn (dt, n_doc, n_dic, &
! Nutrient limitation
!-----------------------------------------------------------------------

Nit_lim(k) = Nitin/(Nitin + K_Nit(k))
if (Nitin + K_Nit(k) /= c0) then
Nit_lim(k) = Nitin/(Nitin + K_Nit(k))
endif
Am_lim(k) = c0
N_lim(k) = Nit_lim(k)
if (tr_bgc_Am) then
Am_lim(k) = Amin/(Amin + K_Am(k))
if (Amin + K_Am(k) /= c0) then
Am_lim(k) = Amin/(Amin + K_Am(k))
endif
N_lim(k) = min(c1, Nit_lim(k) + Am_lim(k))
endif
Sil_lim(k) = c1
Expand Down Expand Up @@ -1936,10 +1940,12 @@ subroutine algal_dyn (dt, n_doc, n_dic, &
U_Sil(k) = U_Sil_f(k)*U_Sil_tot
U_Fe(k) = U_Fe_f(k)*U_Fe_tot

grow_N(k) = (U_Nit(k) + U_Am(k))
if (R_Si2N(k) > c0) then
grow_N(k) = min(U_Sil(k)/R_Si2N(k),U_Nit(k) + U_Am(k), U_Fe(k)/R_Fe2N(k))
else
grow_N(k) = min(U_Nit(k) + U_Am(k),U_Fe(k)/R_Fe2N(k))
grow_N(k) = min(grow_N(k),U_Sil(k)/R_Si2N(k))
endif
if (R_Fe2N(k) /= c0) then
grow_N(k) = min(grow_N(k),U_Fe(k)/R_Fe2N(k))
endif

fr_Am(k) = c0
Expand Down
4 changes: 1 addition & 3 deletions columnphysics/icepack_parameters.F90
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ subroutine icepack_init_parameters( &
snowage_rhos_in, snowage_Tgrd_in, snowage_T_in, &
snowage_tau_in, snowage_kappa_in, snowage_drdt0_in, &
snw_aging_table_in, snw_ssp_table_in, grid_o_t_in, tau_min_in, tau_max_in, &
! these are defined in icepack_init_zbgc
f_don_protein_in, kn_bac_protein_in, f_don_Am_protein_in, &
ratio_Si2N_diatoms_in, &
ratio_Si2N_sp_in, ratio_Si2N_phaeo_in, ratio_S2N_diatoms_in, &
Expand Down Expand Up @@ -618,8 +617,7 @@ subroutine icepack_init_parameters( &
ratio_C2N_diatoms_in, ratio_C2N_sp_in, ratio_C2N_phaeo_in, &
ratio_chl2N_diatoms_in, ratio_chl2N_sp_in, ratio_chl2N_phaeo_in, &
F_abs_chl_diatoms_in, F_abs_chl_sp_in, F_abs_chl_phaeo_in, &
ratio_C2N_proteins_in &
)
ratio_C2N_proteins_in )

!-----------------------------------------------------------------
! control settings
Expand Down
4 changes: 2 additions & 2 deletions columnphysics/icepack_zbgc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,11 @@ subroutine icepack_biogeochemistry(dt, &
else
first_ice(n) = .true.
if (tr_brine) trcrn(nt_fbri,n) = c1
!if (z_tracers) then
if (z_tracers) then
do mm = 1,nbtrcr
trcrn(nt_zbgc_frac-1+mm,n) = zbgc_frac_init(mm)
enddo
!endif
endif
endif

if (aicen(n) > puny) then
Expand Down
Loading
Loading