Inflate model state, so that additional strain compartments are created but zerod. Use this to run the model for a while, then set it up to work with new strains.

inflate_state_strains(state1, info1, info2)

Arguments

state1

The state matrix with one strain

info1

The model info with one strain (or a dust model object)

info2

The model info with two strains (or a dust model object)

Value

An expanded model state with two strains

Author

Richard Fitzjohn