diff --git a/src/vonFoersterHazards.jl b/src/vonFoersterHazards.jl index e3a5908..7c6c1f3 100644 --- a/src/vonFoersterHazards.jl +++ b/src/vonFoersterHazards.jl @@ -43,7 +43,7 @@ function Base.iterate(E::evolve) H = hazardrate(E.ages, E.population) (size(H) == (l, u)) || throw(DimensionMismatch("unequal number of states in the extensize hazard rate and the cohorts of population")) - (size(hazardrate(1.0, H)) == (l, u)) || + (size(hazardrate(E.ages[1], H)) == (l, u)) || throw(DimensionMismatch("unequal number of states in the intensize hazard rate and the cohorts of population")) ((E.ages, E.population), 0) end