-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Mizer is based on the PDE
that it solves numerically by approximating the derivatives with first-order finite-difference approximations. In particular it approximates the derivative with respect to
which is correct to first order if
Unfortunately mizer is using
Given mizer's logarithmically-spaced
To give a feel for the size of this error: if fish sizes in the model range from 1mg to 10kg then the factor is about 1.18 when using 100 size bins and 1.08 when using 200 size bins.
When we switch to the correct scheme, we should automatically update all old-version params objects in such a way that their growth rates are increased by the factor mizerEGrowth() function for them.
Alternatively we could set a flag in the old-version params objects that tells mizer to continue to use the wrong scheme for them.