Skip to content

Commit 87948bf

Browse files
Rick-Methot-NOAAe-perl-NOAA
authored andcommitted
latest update
1 parent 9af4686 commit 87948bf

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

SS_benchfore.tpl

+13-12
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
767767
if (show_MSY == 1)
768768
{
769769
report5 << "SR_parms for benchmark: " << SR_parm_work << endl
770-
<< "Benchmark biology averaged over years: " << Bmark_Yr(1) << " " << Bmark_Yr(2) << " flag for updating SSBpR0 = " << SR_update_SSBpR0_bmark << endl;
770+
<< "Benchmark biology averaged over years: " << Bmark_Yr(1) << " " << Bmark_Yr(2) << endl <<
771+
"input.SR_update_SSBpR0_rd: " << SR_update_SSBpR0_rd << "flag for updating SSBpR0_Bmark: " << SR_update_SSBpR0_bmark << endl;
771772
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_virgin, Recr_virgin, SSBpR_virgin); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
772773
report5 << " Virgin SSB, R0, SPR0: " << SSB_virgin << " " << Recr_virgin << " " << SSBpR_virgin << " equil: " << Equ_SpawnRecr_Result << endl;
773774
if ( SR_update_SSBpR0_bmark == 1)
@@ -2176,10 +2177,16 @@ FUNCTION void Get_Forecast()
21762177
{
21772178
H4010_top = H4010_top_rd;
21782179
}
2180+
if (Fcast_Loop_Control(5) <= 1)
2181+
{HCR_anchor = SSB_unf;}
2182+
else if (Fcast_Loop_Control(5) ==2)
2183+
{HCR_anchor = SSB_virgin;}
21792184
report5 << "#" << endl;
21802185
report5 << "N_forecast_yrs: " << N_Fcast_Yrs << endl;
2181-
report5 << "OY_Control_Rule "
2182-
<< " Inflection: " << H4010_top << " Intercept: " << H4010_bot << " Scale: " << H4010_scale_vec(endyr + 1) << "; ";
2186+
report5 << "OY_Control_Rule: Inflection: " << H4010_top << " Intercept: " << H4010_bot << " Scale: " << H4010_scale_vec(endyr + 1) << endl
2187+
<< "Control_rule_anchor_approach: " << Fcast_Loop_Control(5) << " HCR_anchor: " << HCR_anchor << endl;
2188+
report5 << "#" << endl;
2189+
21832190
switch (HarvestPolicy)
21842191
{
21852192
case 0: // none
@@ -2209,13 +2216,7 @@ FUNCTION void Get_Forecast()
22092216
break;
22102217
}
22112218
}
2212-
if (Fcast_Loop_Control(5) <= 1)
2213-
{HCR_anchor = SSB_unf;}
2214-
else if (Fcast_Loop_Control(5) ==2)
2215-
{HCR_anchor = SSB_virgin;}
2216-
report5 << "Control_rule_anchor_approach: " << Fcast_Loop_Control(5) << " HCR_anchor: " << HCR_anchor << endl;
2217-
report5 << "#" << endl;
2218-
}
2219+
}
22192220

22202221
int jloop;
22212222
if (fishery_on_off == 1 || Do_Dyn_Bzero > 0)
@@ -2264,7 +2265,7 @@ FUNCTION void Get_Forecast()
22642265
if (HarvestPolicy == 0)
22652266
report5 << "pop year ABC_Loop season No_buffer bio-all bio-Smry SpawnBio Depletion recruit-0 ";
22662267
if (HarvestPolicy <= 2)
2267-
report5 << "pop year ABC_Loop season Ramp&Buffer bio-all bio-Smry SpawnBio Depletion recruit-0 ";
2268+
report5 << "pop year ABC_Loop season Ramp&Buffer Buffer2 bio-all bio-Smry SpawnBio Depletion recruit-0 ";
22682269
if (HarvestPolicy >= 3)
22692270
report5 << "pop year ABC_Loop season Ramp bio-all bio-Smry SpawnBio Depletion recruit-0 ";
22702271
for (int ff = 1; ff <= N_catchfleets(0); ff++)
@@ -3136,7 +3137,7 @@ FUNCTION void Get_Forecast()
31363137
}
31373138
if (show_MSY == 1)
31383139
{
3139-
report5 << p << " " << y << " " << ABC_Loop << " " << s << " " << ABC_buffer(y) << " " << totbio << " " << smrybio << " ";
3140+
report5 << p << " " << y << " " << ABC_Loop << " " << s << " " << ABC_buffer(y) << " " << H4010_scale_vec(y) << " " << totbio << " " << smrybio << " ";
31403141
if (s == spawn_seas)
31413142
{
31423143
report5 << SSB_current << " ";

SS_param.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ PARAMETER_SECTION
235235
init_bounded_vector Fcast_recruitments(recdev_end+1,s,recdev_LO,recdev_HI,Fcast_recr_PH2)
236236
init_bounded_vector Fcast_impl_error(endyr+1,j,-1,1,k)
237237
vector ABC_buffer(endyr+1,YrMax);
238-
number HCR_anchor // basis (denominator) bor inflection in control rule
238+
number HCR_anchor // basis (denominator) for inflection in control rule. Select virgin SSB or benchmark SSB
239239

240240
// SPAWN-RECR: define some spawning biomass and recruitment entities
241241
number SSB_virgin

SS_write_ssnew.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1642,9 +1642,9 @@ FUNCTION void write_nucontrol()
16421642
NuFore << HarvestPolicy << " # Control rule method (0: none; 1: ramp does catch=f(SSB), buffer on F; 2: ramp does F=f(SSB), buffer on F; 3: ramp does catch=f(SSB), buffer on catch; 4: ramp does F=f(SSB), buffer on catch) " << endl;
16431643
NuFore << "# values for top, bottom and buffer exist, but not used when Policy=0" << endl;
16441644
NuFore << H4010_top_rd << " # Control rule inflection for constant F (as frac of Bzero, e.g. 0.40); must be > control rule cutoff, or set to -1 to use Bmsy/SSB_unf " << endl;
1645-
NuFore << "# Also see HCR_anchor below" << endl;
16461645
NuFore << H4010_bot << " # Control rule cutoff for no F (as frac of Bzero, e.g. 0.10) " << endl;
16471646
NuFore << H4010_scale_rd << " # Buffer: enter Control rule target as fraction of Flimit (e.g. 0.75), negative value invokes list of [year, scalar] with filling from year to YrMax " << endl;
1647+
NuFore << "# Also see HCR_anchor below" << endl;
16481648
if (H4010_scale_rd < 0)
16491649
{
16501650
j = H4010_scale_vec_rd.size() - 1;

0 commit comments

Comments
 (0)