Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenwu0728 committed Aug 31, 2023
1 parent 766ccc3 commit e4a3940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/time_step.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function TimeStep!(model::PlanktonModel, ΔT, diags::PlanktonDiagnostics)
@inbounds model.timestepper.Chl .= 0.0
@inbounds model.timestepper.pop .= 0.0
##### plankton advection, diffusion, and physiological update
if model.bgc_params.shared_graz == 1.0 # shared grazing
if model.bgc_params["shared_graz"] == 1.0 # shared grazing
for sp in keys(model.individuals.phytos)
##### RK4
plankton_advection!(model.individuals.phytos[sp].data, model.timestepper.velos, model.grid,
Expand All @@ -49,7 +49,7 @@ function TimeStep!(model::PlanktonModel, ΔT, diags::PlanktonDiagnostics)
model.timestepper.rnd, model.individuals.phytos[sp].p,
model.timestepper.plk, diags.plankton[sp], ΔT, model.t, model.arch, model.mode)
end
else # model.bgc_params.shared_graz ≠ 1.0 - species-specific grazing
else # model.bgc_params["shared_graz"] ≠ 1.0 - species-specific grazing
for sp in keys(model.individuals.phytos)
##### RK4
plankton_advection!(model.individuals.phytos[sp].data, model.timestepper.velos, model.grid,
Expand Down

0 comments on commit e4a3940

Please sign in to comment.