Skip to content

Commit af12ac1

Browse files
committed
use biomass normalized f_T2B instead
1 parent 5375cb7 commit af12ac1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Parameters/param_default.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function phyt_params_default(N::Int64, mode::CarbonMode)
217217
"Ea" => [5.3e4], # Free energy
218218
"PCmax" => [4.2e-5], # Maximum primary production rate (per second)
219219
"respir" => [1.2e-6], # Respiration rate(per second)
220-
"f_T2B" => [1.0e-16], # Thermal damage rate (mmolC/K/s)
220+
"f_T2B" => [2.7e-6], # Thermal damage rate (1.0/K/s)
221221
"grz_P" => [0.0], # Grazing probability per second
222222
"dvid_P" => [5e-5], # Probability of cell division per second.
223223
"dvid_type" => [1], # The type of cell division, 1:sizer, 2:adder.

src/Plankton/CarbonMode/division_death.jl

-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,5 @@ function divide!(plank, deactive_ind, arch::Architecture)
8383
get_tind!(plank.idx, plank.dvid, Int.(con_ind), deactive_ind, arch)
8484
copy_daughter_individuals!(plank, plank.dvid, Int.(plank.idx), arch)
8585
divide_to_half!(plank, arch)
86-
# println("time step ends")
8786
return nothing
8887
end

src/Plankton/CarbonMode/growth_kernels.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ end
7171
##### keep thermal damage between 0.0 and healthy biomass (Bm-Bd)
7272
@kernel function calc_thermal_damage_kernel!(plank, T, p, ΔT)
7373
i = @index(Global)
74-
@inbounds plank.TD[i] = (T[i] - p.Topt) * p.f_T2B *
74+
@inbounds plank.TD[i] = (T[i] - p.Topt) * p.f_T2B * (plank.Bm[i] - plank.Bd[i])
7575
isless(p.Topt, T[i]) *
7676
isless(plank.Bd[i], plank.Bm[i]) *
7777
isless(0.0, p.thermal)

0 commit comments

Comments
 (0)