Skip to content

Commit

Permalink
latest update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick-Methot-NOAA authored and e-perl-NOAA committed Nov 12, 2024
1 parent a697eeb commit 8441b4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
25 changes: 13 additions & 12 deletions SS_benchfore.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,8 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
if (show_MSY == 1)
{
report5 << "SR_parms for benchmark: " << SR_parm_work << endl
<< "Benchmark biology averaged over years: " << Bmark_Yr(1) << " " << Bmark_Yr(2) << " flag for updating SSBpR0 = " << SR_update_SSBpR0_bmark << endl;
<< "Benchmark biology averaged over years: " << Bmark_Yr(1) << " " << Bmark_Yr(2) << endl <<
"input.SR_update_SSBpR0_rd: " << SR_update_SSBpR0_rd << "flag for updating SSBpR0_Bmark: " << SR_update_SSBpR0_bmark << endl;
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
report5 << " Virgin SSB, R0, SPR0: " << SSB_virgin << " " << Recr_virgin << " " << SSBpR_virgin << " equil: " << Equ_SpawnRecr_Result << endl;
if ( SR_update_SSBpR0_bmark == 1)
Expand Down Expand Up @@ -2176,10 +2177,16 @@ FUNCTION void Get_Forecast()
{
H4010_top = H4010_top_rd;
}
if (Fcast_Loop_Control(5) <= 1)
{HCR_anchor = SSB_unf;}
else if (Fcast_Loop_Control(5) ==2)
{HCR_anchor = SSB_virgin;}
report5 << "#" << endl;
report5 << "N_forecast_yrs: " << N_Fcast_Yrs << endl;
report5 << "OY_Control_Rule "
<< " Inflection: " << H4010_top << " Intercept: " << H4010_bot << " Scale: " << H4010_scale_vec(endyr + 1) << "; ";
report5 << "OY_Control_Rule: Inflection: " << H4010_top << " Intercept: " << H4010_bot << " Scale: " << H4010_scale_vec(endyr + 1) << endl
<< "Control_rule_anchor_approach: " << Fcast_Loop_Control(5) << " HCR_anchor: " << HCR_anchor << endl;
report5 << "#" << endl;

switch (HarvestPolicy)
{
case 0: // none
Expand Down Expand Up @@ -2209,13 +2216,7 @@ FUNCTION void Get_Forecast()
break;
}
}
if (Fcast_Loop_Control(5) <= 1)
{HCR_anchor = SSB_unf;}
else if (Fcast_Loop_Control(5) ==2)
{HCR_anchor = SSB_virgin;}
report5 << "Control_rule_anchor_approach: " << Fcast_Loop_Control(5) << " HCR_anchor: " << HCR_anchor << endl;
report5 << "#" << endl;
}
}

int jloop;
if (fishery_on_off == 1 || Do_Dyn_Bzero > 0)
Expand Down Expand Up @@ -2264,7 +2265,7 @@ FUNCTION void Get_Forecast()
if (HarvestPolicy == 0)
report5 << "pop year ABC_Loop season No_buffer bio-all bio-Smry SpawnBio Depletion recruit-0 ";
if (HarvestPolicy <= 2)
report5 << "pop year ABC_Loop season Ramp&Buffer bio-all bio-Smry SpawnBio Depletion recruit-0 ";
report5 << "pop year ABC_Loop season Ramp&Buffer Buffer2 bio-all bio-Smry SpawnBio Depletion recruit-0 ";
if (HarvestPolicy >= 3)
report5 << "pop year ABC_Loop season Ramp bio-all bio-Smry SpawnBio Depletion recruit-0 ";
for (int ff = 1; ff <= N_catchfleets(0); ff++)
Expand Down Expand Up @@ -3136,7 +3137,7 @@ FUNCTION void Get_Forecast()
}
if (show_MSY == 1)
{
report5 << p << " " << y << " " << ABC_Loop << " " << s << " " << ABC_buffer(y) << " " << totbio << " " << smrybio << " ";
report5 << p << " " << y << " " << ABC_Loop << " " << s << " " << ABC_buffer(y) << " " << H4010_scale_vec(y) << " " << totbio << " " << smrybio << " ";
if (s == spawn_seas)
{
report5 << SSB_current << " ";
Expand Down
2 changes: 1 addition & 1 deletion SS_param.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ PARAMETER_SECTION
init_bounded_vector Fcast_recruitments(recdev_end+1,s,recdev_LO,recdev_HI,Fcast_recr_PH2)
init_bounded_vector Fcast_impl_error(endyr+1,j,-1,1,k)
vector ABC_buffer(endyr+1,YrMax);
number HCR_anchor // basis (denominator) bor inflection in control rule
number HCR_anchor // basis (denominator) for inflection in control rule. Select virgin SSB or benchmark SSB

// SPAWN-RECR: define some spawning biomass and recruitment entities
number SSB_virgin
Expand Down
2 changes: 1 addition & 1 deletion SS_write_ssnew.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1642,9 +1642,9 @@ FUNCTION void write_nucontrol()
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;
NuFore << "# values for top, bottom and buffer exist, but not used when Policy=0" << endl;
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;
NuFore << "# Also see HCR_anchor below" << endl;
NuFore << H4010_bot << " # Control rule cutoff for no F (as frac of Bzero, e.g. 0.10) " << endl;
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;
NuFore << "# Also see HCR_anchor below" << endl;
if (H4010_scale_rd < 0)
{
j = H4010_scale_vec_rd.size() - 1;
Expand Down

0 comments on commit 8441b4c

Please sign in to comment.