Closed iantaylor-NOAA closed 11 months ago
There already is a check for this situation in readcontrol https://vscode.dev/github/nmfs-stock-synthesis/stock-synthesis/blob/505-bug-check-length-at-age-output-when-settlement-is-at-age-1/SS_readcontrol_330.tpl#L6666 Need to figure out why it is not working
OK. The added warning is newer than 3.30.21. When we get this new release out in a few weeks, you will see: Warning 3 Fatal Error! must select dyn_bzero in control file extra_std for it to be used as depletion denominator
see PR #419 for issue #69
That makes sense! Sorry for not tracking this down myself before posting the issue.
Describe the bug
Thanks to Claudio Castillo-Jordan for sharing this issue. Changing the starter file to use dyn_Bzero as the deplation basis in the files shared by email
5 # Depletion basis: denom is: 0=skip; 1=X*SPBvirgin; 2=X*SPBmsy; 3=X*SPB_styr; 4=X*SPB_endyr; 5=X*dyn_Bzero; values>=11 invoke N multiyr (up to 9!) with 10's digit; >100 invokes log(ratio)
caused an error when running withss3 -nohess -stopph 0
I was able to make the error go away by adding Dynamic B0 to the derived quantities using the Controls for Variance of Derived Quantities at the bottom of the control file (input shown below).
To Reproduce
Run files shared by email with @Rick-Methot-NOAA, or perhaps add depletion basis 5 to any model without Dynamic B0 in the derived quantities.
Expected behavior
Either stopping with a warning saying that the Dynamic B0 as derived quantity was required or (if possible), allow the depletion basis option 5 to work without that extra reporting.
Screenshots
No response
Which OS are you seeing the problem on?
No response
Which version of SS3 are you seeing the problem on?
No response
Additional Context
No response