Skip to content

Commit 85d66ae

Browse files
committed
fix typo
1 parent e2b0d05 commit 85d66ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plankton/CarbonMode/growth_kernels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ end
2828
##### calculate photosynthesis rate (mmolC/individual/second)
2929
@inline function calc_photosynthesis(par, T, Chl, Bm, Bd, p)
3030
αI = par * p.α * p.Φ
31-
PCm = p.PCmax * (tempFunc(temp, p) * p.thermal + tempFunc_PS(temp, p) * (1.0f0 - p.thermal))
31+
PCm = p.PCmax * (tempFunc(T, p) * p.thermal + tempFunc_PS(T, p) * (1.0f0 - p.thermal))
3232
light_limit = 1.0f0 - exp(-αI / max(1.0f-30, PCm) * Chl / max(1.0f-30, Bm))
3333
PS = PCm * max(0.0f0, Bm - Bd) * (light_limit * (1.0f0 - p.is_bact) + p.is_bact)
3434
return PS

0 commit comments

Comments
 (0)