Skip to content

revise RECR_DIST output to work better for models without 50/50 sex ratio at recruitment? #611

@iantaylor-NOAA

Description

@iantaylor-NOAA

The 2nd dimension of the recr_dist array has length equal to the product of the number of growth patterns and number of sexes:

4darray recr_dist(styr-3,YrMax,1,N_GP*gender,1,N_settle_timings,1,pop);

However the RECRUITMENT_DIST output in Report.sso only loops over growth patterns, not sexes within them:
// REPORT_KEYWORD 10 RECRUITMENT_DISTRIBUTION
if (pick_report_use(10) == "Y")
{
SS2out << endl
<< pick_report_name(10) << endl;
SS2out << "Settle# settle_timing# G_pattern Area Settle_Month Seas Age Time_w/in_seas Frac/sex" << endl;
for (settle = 1; settle <= N_settle_assignments; settle++)
{
gp = settlement_pattern_rd(settle, 1); // growth patterns
p = settlement_pattern_rd(settle, 3); // settlement area
settle_time = settle_assignments_timing(settle);
SS2out << settle << " " << settle_time << " " << gp << " " << p << " " << Settle_month(settle_time) << " " << Settle_seas(settle_time) << " " << Settle_age(settle_time) << " " << Settle_timing_seas(settle_time) << " " << recr_dist(styr, gp, settle_time, p) << endl;
}

This works fine for the huge majority of models that are either 1-sex or have the fraction female fixed at 0.5.

However, @akatan999 shared a model (shared with SS3 developers on Google Drive here) with hermaphroditism and multiple areas where the fish recruit to both areas as males but the values in the table only show the tiny fraction of females recruiting to each area:

RECRUITMENT_DIST report:10
Settle# settle_timing# G_pattern Area Settle_Month Seas Age Time_w/in_seas Frac/sex
1 1 1 1 1 1 0 0 4.43463e-07
2 1 1 2 1 1 0 0 5.56537e-07

Could that table be revised to either sum across females and males OR have separate rows for both females and males?

Metadata

Metadata

Labels

misc. outputresolvedissue resolved, look for "needs test" label

Type

No type

Projects

Status

Done

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions