You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_virgin, Recr_virgin, SSBpR_virgin_4SRR, SSBpR_virgin); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
SSBpR_virgin_adj = SSB_unf / Recr_unf; // so same as SSBpR_virgin, but is the version that will be used in equil_spawn_recr()
756
+
Recr_unf = Recr_virgin;
757
+
SSB_unf = SSB_virgin;
758
+
Fishon = 0;
759
+
Recr_unf = Recr_virgin;
760
+
Do_Equil_Calc(Recr_unf); // this calcs SSB using benchmark biology
761
+
temp1 = SSB_equil; // equilibrium unfished SSB using the benchmark averaged Recr_unf and benchmark averaged biology
762
+
temp2 = temp1 / Recr_unf;
763
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_virgin, Recr_virgin, SSBpR_virgin_4SRR, temp2); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
@@ -763,23 +770,15 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
763
770
Do_Equil_Calc(Recr_unf); // this calcs SSB using benchmark biology
764
771
SSB_unf = SSB_equil; // equilibrium unfished SSB using the benchmark averaged Recr_unf and benchmark averaged biology
765
772
SSBpR_unf = SSB_unf / Recr_unf; // this corresponds to the biology for benchmark average years, not the virgin SSB_virgin
766
-
SSBpR_virgin_adj = SSB_unf / Recr_unf; // update
773
+
SSBpR_virgin_4SRR = SSB_unf / Recr_unf; // update
774
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_unf); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
"input_SR_update_SSBpR0_rd: "<< SR_update_SSBpR0_rd <<"; flag for updating SSBpR0_Bmark: "<< SR_update_SSBpR0_bmark << endl;
773
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_virgin, Recr_virgin, SSBpR_virgin, SSBpR_virgin); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin, SSBpR_virgin); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
report5 <<"SPR0 for equilibrium spawner-recruit based on benchmark biology, not virgin biology"<< endl;
780
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_virgin_adj); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
Mgmt_quant(21) = SSB_unf; // placeholder to be replaced by SSB_HCR_infl
@@ -934,7 +933,7 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
934
933
935
934
// SPAWN-RECR: calc equil spawn-recr in YPR; need to make this area-specific
936
935
SSBpR_temp = SSB_equil; // based on most recent call to Do_Equil_Calc
937
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
936
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
938
937
939
938
Bspr = Equ_SpawnRecr_Result(1);
940
939
Bspr_rec = Equ_SpawnRecr_Result(2);
@@ -1049,7 +1048,7 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1051
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1053
1052
Btgt = Equ_SpawnRecr_Result(1);
1054
1053
Btgt_Rec = Equ_SpawnRecr_Result(2);
1055
1054
YPR_Btgt_enc = YPR_enc; // total encountered yield per recruit
@@ -1145,7 +1144,7 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
1145
1144
SSBpR_temp = SSB_equil;
1146
1145
SPR_Btgt = SSBpR_temp / SSBpR_unf; // where SSBpR_unf = SSB_unf / Recr_unf so units of SSB/R; so result is SPR_Btgt = (fished SSB/R) / (unfished SSB/R)
1147
1146
// SPAWN-RECR: calc equil spawn-recr for Btarget calcs; need to make area-specific
1148
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1147
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1149
1148
yld1(ii) = Equ_SpawnRecr_Result(1);
1150
1149
}
1151
1150
@@ -1185,7 +1184,7 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
@@ -1366,7 +1365,7 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
1366
1365
// SPAWN-RECR: calc spawn-recr for MSY calcs; need to make area-specific
1367
1366
MSY_SPR = SSB_equil / SSBpR_unf;
1368
1367
SSBpR_temp = SSB_equil;
1369
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1368
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1370
1369
Bmsy = Equ_SpawnRecr_Result(1); // with MSY set to SPR, not directly estimated
1371
1370
Recr_msy = Equ_SpawnRecr_Result(2);
1372
1371
yld1(1) = YPR_opt * Recr_msy;
@@ -1460,7 +1459,7 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
1460
1459
// SPAWN-RECR: calc spawn-recr for MSY calcs; need to make area-specific
1461
1460
MSY_SPR = SSB_equil / SSBpR_unf;
1462
1461
SSBpR_temp = SSB_equil;
1463
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1462
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1464
1463
Bmsy = Equ_SpawnRecr_Result(1); // MSY is directly estimated
@@ -1756,7 +1755,7 @@ FUNCTION void Get_Benchmarks(const int show_MSY)
1756
1755
SPR_Btgt2 = SSB_equil / SSBpR_unf;
1757
1756
// SPAWN-RECR: calc equil spawn-recr for Btarget calcs; need to make area-specific
1758
1757
SSBpR_temp = SSB_equil;
1759
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
1758
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
@@ -536,7 +536,7 @@ FUNCTION void get_initial_conditions()
536
536
SSBpR_temp = SSB_equil / equ_Recr; // spawners per recruit at initial F
537
537
// get equilibrium SSB and recruitment from SSBpR_temp, Recr_virgin and virgin steepness
538
538
// this is the initial year, so no time-vary effects available, so uses _virgin quantities for spawner-recruitment
539
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_virgin, Recr_virgin, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
539
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_virgin, Recr_virgin, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
540
540
R1_exp = Equ_SpawnRecr_Result(2); // set the expected recruitment equal to this equilibrium
541
541
exp_rec(eq_yr, 1) = R1_exp;
542
542
@@ -1040,7 +1040,7 @@ FUNCTION void get_time_series()
1040
1040
bio_yr = y;
1041
1041
Do_Equil_Calc(R0_use); // call function to do equilibrium calculation with current year's biology and adjusted R0
1042
1042
SSB_use = SSB_equil;
1043
-
SSBpR_virgin_adj = SSB_use / R0_use; // update
1043
+
SSBpR_virgin_4SRR = SSB_use / R0_use; // update
1044
1044
if (fishery_on_off == 1)
1045
1045
{
1046
1046
Fishon = 1;
@@ -1500,7 +1500,7 @@ FUNCTION void get_time_series()
1500
1500
bio_yr = y;
1501
1501
Do_Equil_Calc(R0_use); // call function to do equilibrium calculation
// SPAWN-RECR: calc equil spawn-recr in the SPR loop
4904
4906
SSBpR_temp = SSB_equil;
4905
-
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_adj, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
4907
+
Equ_SpawnRecr_Result = Equil_Spawn_Recr_Fxn(SR_parm_work, SSB_unf, Recr_unf, SSBpR_virgin_4SRR, SSBpR_temp); // returns 2 element vector containing equilibrium biomass and recruitment at this SPR
0 commit comments