Skip to content

Commit 5e35314

Browse files
fix complete for do_forecast==0
1 parent 068eaf6 commit 5e35314

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

SS_benchfore.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,7 @@ FUNCTION void Get_Forecast()
20852085
}
20862086
case 4:
20872087
{
2088+
// note that case 0 gets converted to case 4 after it is read
20882089
Fcast_Fmult = 0.0;
20892090
for (y = Fcast_RelF_yr1; y <= Fcast_RelF_yr2; y++)
20902091
for (s = 1; s <= nseas; s++)
@@ -2124,7 +2125,6 @@ FUNCTION void Get_Forecast()
21242125
{
21252126
Fcast_Fmult = 0.0;
21262127
}
2127-
21282128
if (Fcast_Loop_Control(5) == 1)
21292129
{HCR_anchor = SSB_virgin;}
21302130
else if (Fcast_Loop_Control(5) == 2)
@@ -2151,8 +2151,8 @@ FUNCTION void Get_Forecast()
21512151
write_message (WARN, 0);
21522152
}
21532153

2154-
Mgmt_quant(20) = H4010_top * HCR_anchor;
2155-
2154+
if (Do_Forecast_rd > 0) Mgmt_quant(20) = H4010_top * HCR_anchor;
2155+
21562156
if (show_MSY == 1) // write more headers
21572157
{
21582158
report5 << "Annual_Forecast_Fmult: " << Fcast_Fmult << endl;

0 commit comments

Comments
 (0)