Skip to content

bug in multi-season forecast catch output #205

@Rick-Methot-NOAA

Description

@Rick-Methot-NOAA

in forecast, this code is within the season loop, so the initialize to 0.0 seems wrong. This would only affect a multi-season model, so should be investigated with such:
if((Fcast_Loop1==2 || Fcast_Loop_Control(1)==1) && ABC_Loop==1) // get variance in OFL
{
Mgmt_quant(Fcast_catch_start+N_Fcast_Yrs+y-endyr)=0.;
for (f=1;f<=Nfleet;f++)
{
if(fleet_type(f)==1)
{Mgmt_quant(Fcast_catch_start+N_Fcast_Yrs+y-endyr)+=catch_fleet(t,f,2);}
else if (fleet_type(f)==3)
{} // survey
else if(bycatch_setup(f,2)==1) // bycatch
{Mgmt_quant(Fcast_catch_start+N_Fcast_Yrs+y-endyr)+=catch_fleet(t,f,2);}
}
}

Metadata

Metadata

Labels

bugSomething isn't working; don't remove label after fixingforecast

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions