Skip to content

[Bug]: control.ss_new not writing 2D-AR1 parameter lines when sigma_amax < 0 #678

@iantaylor-NOAA

Description

@iantaylor-NOAA

Describe the bug

The User Manual guidance on 2D-AR1 (semi-parametric) selectivity notes that "For simplicity, only a single sigma parameter line needs to be read if Sigma_Amax equals Amin, or if Sigma_Amax < 0."

However, the code to write the control.ss_new file doesn't include this option and just skips writing of the one parameter line:

for (a = amin; a <= sigma_amax; a++)
{
dvector dtempvec(1, 7); // Lo, Hi, init, prior, prior_sd, prior_type, phase;
k++;
dtempvec = timevary_parm_rd[k](1, 7);
dtempvec(3) = value ( selparm(isigmasel + a - amin) );
report4 << dtempvec << " # sigma_sel for fleet:_" << tempvec(1) << "; " << anystring << "_" << a <<endl;
}
.

The example attached includes input files (which runs successfully) and the control.ss_new file with the missing parameter line.
simple_small_2DAR_len.zip.

To Reproduce

Run the model attached above.

Expected behavior

Parameter line for 2D-AR selectivity

Screenshots

No response

Which OS are you seeing the problem on?

No response

Which version of SS3 are you seeing the problem on?

3.30.23.1

Additional Context

No response

Metadata

Metadata

Labels

change loguse for issues that should appear in change logselectivity

Type

Projects

Status

Done

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions