Skip to content

Commit 6c36325

Browse files
add FATAL warning for AFIX2 > nages
1 parent 441ddf5 commit 6c36325

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

SS_readcontrol_330.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,13 @@
954954
N_growparms = 2; // for the two CV parameters
955955
k1 = N_GP * gender; // for reading empirical length_at_age
956956
}
957+
if (AFIX2 != 999 && AFIX2 > nages)
958+
{
959+
warnstream << "AFIX2 (Age post-settlement for L2, aka Amax) must be <= nages, entered value = " << AFIX2;
960+
write_message (FATAL, 0);
961+
AFIX2 = 999.;
962+
}
963+
957964
plusgroupsize_update = 1; // update mean size in plus group with weighted mean of current size and growth of incoming cohort. Only implemented beginning in the year for which there is time-varying growth
958965
if (Linf_decay == -998) plusgroupsize_update = 0; // option which omits the updating
959966
echoinput << " N_growparms " << N_growparms << endl;

0 commit comments

Comments
 (0)