Applies the instantaneous changes specified by a rescomp_event object to the full set of state variables (species and resources).

apply_event(event_obj, species, resources, params, time)

Arguments

event_obj

An object of class rescomp_event.

species

A vector of species concentrations.

resources

A vector of resource concentrations.

params

A list of time-dependent parameters.

time

The current simulation time.

Value

A vector of state variables, species concentrations followed by resource concentrations.

Details

This function is normally only for internal use, but is exported to aid users in debugging their created rescomp_event objects.

Examples

# TODO