Skip to contents

An internal helper function. This returns the total detritus consumption rate and is used in detritus_dynamics() to calculate the detritus abundance at the next time step. To get the consumption rate split up by consumer species, use getDetritusConsumption().

Usage

detritus_consumption(
  params,
  n_pp = params@initial_n_pp,
  rates = getRates(params)
)

Arguments

params

MizerParams

n_pp

Detritus spectrum

rates

A list of rates as returned by getRates()

Value

A number giving the consumption rate in grams per year.