File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1402
1402
min_tail_L(1, f) = min_tail_L(0, f);
1403
1403
min_tail_L(2, f) = min_tail_L(0, f);
1404
1404
*(ad_comm::global_datafile) >> min_comp_L(0, f);
1405
+ if (min_comp_L(0, f) <= 0) {
1406
+ warnstream << " addtocomp input for length comps fleet " << f <<
1407
+ " is " << min_comp_L(0, f) << " but should be > 0 to avoid log(0) in likelihood" ;
1408
+ write_message(WARN, 0);
1409
+ }
1405
1410
min_comp_L(1, f) = min_comp_L(0, f);
1406
1411
min_comp_L(2, f) = min_comp_L(0, f);
1407
1412
*(ad_comm::global_datafile) >> CombGender_L(0, f);
2280
2285
{
2281
2286
*(ad_comm::global_datafile) >> min_tail_A(f);
2282
2287
*(ad_comm::global_datafile) >> min_comp_A(f);
2288
+ if (min_comp_A(f) <= 0) {
2289
+ warnstream << " addtocomp input for age comps fleet " << f <<
2290
+ " is " << min_comp_A(f) << " but should be > 0 to avoid log(0) in likelihood" ;
2291
+ write_message(WARN, 0);
2292
+ }
2283
2293
*(ad_comm::global_datafile) >> CombGender_A(f);
2284
2294
*(ad_comm::global_datafile) >> AccumBin_A(f);
2285
2295
*(ad_comm::global_datafile) >> Comp_Err_A(f);
You can’t perform that action at this time.
0 commit comments