Skip to content

Commit 3a25265

Browse files
fix output error in Index_2, plus two minor output tweaks (#647)
1 parent 766ce58 commit 3a25265

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

SS_write_report.tpl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,7 @@ FUNCTION void write_bigoutput()
19121912
{
19131913
SS2out << endl
19141914
<< pick_report_name(22) << endl;
1915+
SS2out << "NOTE: Calc_Q is Q_base with devs, so does not include power; eff_Q includes effect of Power" << endl;
19151916
// where show_time(t) contains: yr, seas
19161917
// data_time(ALK,f) has real month; 2nd is timing within season; 3rd is year.fraction
19171918
// show_time2(ALK) has yr, seas, subseas
@@ -2000,23 +2001,27 @@ FUNCTION void write_bigoutput()
20002001
// REPORT_KEYWORD 21 INDEX_1 Survey Fit Summary
20012002
SS2out << endl
20022003
<< pick_report_name(21) << endl;
2003-
SS2out << "Fleet Link Link+ ExtraStd BiasAdj Float Q Num=0/Bio=1 Err_type"
2004+
SS2out << "Fleet Link Link+ ExtraStd BiasAdj Float Qbase Num=0/Bio=1 Err_type"
20042005
<< " N Npos RMSE logL mean_input_SE Input+VarAdj Input+VarAdj+extra VarAdj New_VarAdj penalty_mean_Qdev rmse_Qdev Offset Power fleetname" << endl;
20052006
for (f = 1; f <= Nfleet; f++)
20062007
{
20072008
if (Svy_N_fleet(f) > 0)
20082009
{
2009-
SS2out << f << " " << Q_setup(f) << " " << Svy_q(f, 1) << " " << Svy_units(f) << " " << Svy_errtype(f)
2010-
<< " " << Svy_N_fleet(f) << " " << n_rmse(f) << " " << rmse(f)<< " " << surv_like(f)
2010+
SS2out << f << " " << Q_setup(f)
2011+
<< " " << Svy_q(f, 1) << " " << Svy_units(f) << " " << Svy_errtype(f)
2012+
<< " " << Svy_N_fleet(f) << " " << n_rmse(f) << " " << rmse(f)<< " " << surv_like(f)
20112013
<< " " << mean_CV(f) << " " << mean_CV3(f) << " " << mean_CV2(f) << " " << var_adjust(1, f)
20122014
<< " " << var_adjust(1, f) + rmse(f) - mean_CV(f)
20132015
<< " " << Q_dev_like(f, 1) << " " << Q_dev_like(f, 2) << " ";
20142016
if (Q_setup(f, 1) >= 5)
2015-
{SS2out << Q_parm(Q_setup_parms(f, 1) + 1) << " ";}
2017+
{SS2out << " " << Q_parm(Q_setup_parms(f, 1) + 1);} // offset
20162018
else
20172019
{SS2out << " NA ";}
2018-
if (Q_setup(f, 1) == 3 || Q_setup(f,1) == 6)
2019-
{SS2out << Q_parm(Q_setup_parms(f, 1) + 2) << " ";}
2020+
if (Q_setup(f,1) == 3)
2021+
{SS2out << " " << Q_parm(Q_setup_parms(f, 1) + 1) << " ";} // power
2022+
else
2023+
if (Q_setup(f,1) == 6)
2024+
{SS2out << " " << Q_parm(Q_setup_parms(f, 1) + 2) << " ";} // power
20202025
else
20212026
{SS2out << " NA ";}
20222027
SS2out << fleetname(f) << endl;
@@ -4676,7 +4681,6 @@ FUNCTION void SPR_profile()
46764681
SPRloop1_end = 7;
46774682
}
46784683
int SPRloops;
4679-
SS2out << "ready for equilcalc "<<endl;
46804684
Do_Equil_Calc(equ_Recr);
46814685
if (N_bycatch == 0)
46824686
{
@@ -4686,7 +4690,6 @@ FUNCTION void SPR_profile()
46864690
{
46874691
k = 1;
46884692
}
4689-
SS2out << "ready for loops "<<endl;
46904693
for (int with_BYC = 0; with_BYC <= k; with_BYC++)
46914694
for (int SPRloop1 = 0; SPRloop1 <= SPRloop1_end; SPRloop1++)
46924695
{

0 commit comments

Comments
 (0)