Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions SS_readcontrol_330.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,18 @@
mgp_type(Ip, Ip + N_natMparms - 1) = 1; // natmort parms
Ip += N_natMparms;
mgp_type(Ip, Ip + N_growparms - 1) = 2; // growth parms

// check on out of bound Lmin values. Only check females because males can be offset from females
if ( gp == 1 && WTage_rd == 0 && MGparm_1(Ip,1) < len_bins(1))
{
warnstream << "parm min for Lmin: " << MGparm_1(Ip,1) << " cannot be less than population min length bin " << len_bins(1);
write_message (FATAL, 0); // EXIT!
}
if ( gp == 1 && WTage_rd == 0 && MGparm_1(Ip,3) < len_bins(1))
{
warnstream << "parm init value for Lmin: " << MGparm_1(Ip,3) << " cannot be less than population min length bin " << len_bins(1);
write_message (FATAL, 0); // EXIT!
}

// check on estimation of variance parameters for CV_young and CV_old
for (int kk = Ip + N_growparms - 2; kk <= Ip + N_growparms - 1; kk++)
Expand Down
Loading