Skip to content

Commit 667d0d6

Browse files
cleanup code
1 parent 714f49d commit 667d0d6

File tree

1 file changed

+0
-112
lines changed

1 file changed

+0
-112
lines changed

SS_write_report.tpl

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,118 +1800,6 @@ FUNCTION void write_bigoutput()
18001800
var /= (n_rmse(1) + 1.0e-09);
18011801

18021802
dvariable steepness = SRparm(2);
1803-
/*
1804-
SS2out << endl
1805-
<< pick_report_name(19);
1806-
SS2out << " Function: " << SR_fxn << " RecDev_method: " << do_recdev << " sum_recdev: " << sum_recdev << endl
1807-
<< SRparm(1) << " Ln(R0) " << mfexp(SRparm(1)) << endl
1808-
<< steepness << " steepness" << endl
1809-
<< Bmsy / SSB_virgin << " Bmsy/Bzero ";
1810-
if (SR_fxn == 8)
1811-
{
1812-
dvariable Shepherd_c;
1813-
dvariable Shepherd_c2;
1814-
dvariable Hupper;
1815-
Shepherd_c = SRparm(3);
1816-
Shepherd_c2 = pow(0.2, Shepherd_c);
1817-
Hupper = 1.0 / (5.0 * Shepherd_c2);
1818-
temp = 0.2 + (SRparm(2) - 0.2) / (0.8) * (Hupper - 0.2);
1819-
SS2out << " Shepherd_c: " << Shepherd_c << " steepness_limit: " << Hupper << " Adjusted_steepness: " << temp;
1820-
}
1821-
else if (SR_fxn == 9)
1822-
{
1823-
SS2out << " Ricker_Power: " << SRparm(3);
1824-
}
1825-
1826-
SS2out << endl;
1827-
SS2out << sigmaR << " sigmaR" << endl;
1828-
SS2out << init_equ_steepness << " # 0/1 to use steepness in initial equ recruitment calculation" << endl;
1829-
1830-
SS2out << SRparm(N_SRparm2 - 1) << " init_eq: see below" << endl
1831-
<< recdev_start << " " << recdev_end << " main_recdev:start_end" << endl
1832-
<< recdev_adj(1) << " " << recdev_adj(2, 5) << " breakpoints_for_bias_adjustment_ramp " << endl;
1833-
1834-
temp = sigmaR * sigmaR; // sigmaR^2
1835-
SS2out << "ERA N RMSE RMSE^2/sigmaR^2 mean_BiasAdj est_rho Durbin-Watson" << endl;
1836-
SS2out << "main " << n_rmse(1) << " " << rmse(1) << " " << square(rmse(1)) / temp << " " << rmse(2) << " " << cross / var << " " << Durbin;
1837-
if (wrote_bigreport == 0) // first time writing bigreport
1838-
{
1839-
if (rmse(1) < 0.5 * sigmaR && rmse(2) > (0.01 + 2.0 * square(rmse(1)) / temp))
1840-
{
1841-
warnstream << "Main recdev biasadj is >2 times ratio of rmse to sigmaR";
1842-
SS2out << " # " << warnstream.str() ;
1843-
write_message (WARN, 0);
1844-
}
1845-
}
1846-
SS2out << endl;
1847-
1848-
SS2out << "early " << n_rmse(3) << " " << rmse(3) << " " << square(rmse(3)) / temp << " " << rmse(4);
1849-
if (wrote_bigreport == 0) // first time writing bigreport
1850-
{
1851-
if (rmse(3) < 0.5 * sigmaR && rmse(4) > (0.01 + 2.0 * square(rmse(3)) / temp))
1852-
{
1853-
warnstream << "Early recdev biasadj is >2 times ratio of rmse to sigmaR";
1854-
SS2out << " # " << warnstream.str();
1855-
write_message (WARN, 0);
1856-
}
1857-
}
1858-
SS2out << endl;
1859-
1860-
SS2out << "Yr SpawnBio exp_recr with_regime bias_adjusted pred_recr dev biasadjuster era mature_bio mature_num raw_dev" << endl;
1861-
SS2out << "S/Rcurve " << SSB_virgin << " " << Recr_virgin << endl;
1862-
y = styr - 2;
1863-
SS2out << "Virg " << SSB_yr(y) << " " << exp_rec(y) << " - " << 0.0 << " Virg " << SSB_B_yr(y) << " " << SSB_N_yr(y) << " 0.0 " << endl;
1864-
y = styr - 1;
1865-
SS2out << "Init " << SSB_yr(y) << " " << exp_rec(y) << " - " << 0.0 << " Init " << SSB_B_yr(y) << " " << SSB_N_yr(y) << " " << 0.0 << endl;
1866-
1867-
if (recdev_first < styr)
1868-
{
1869-
for (y = recdev_first; y <= styr - 1; y++)
1870-
{
1871-
SS2out << y << " " << SSB_yr(styr - 1) << " " << exp_rec(styr - 1, 1) << " " << exp_rec(styr - 1, 2) << " " << exp_rec(styr - 1, 3) * mfexp(-biasadj(y) * half_sigmaRsq) << " " << exp_rec(styr - 1, 3) * mfexp(recdev(y) - biasadj(y) * half_sigmaRsq) << " "
1872-
<< recdev(y) << " " << biasadj(y) << " Init_age " << SSB_B_yr(styr - 1) << " " << SSB_N_yr(styr - 1) << " " << recdev(y) << endl; // newdev approach uses devs for initial agecomp directly
1873-
}
1874-
}
1875-
for (y = styr; y <= YrMax; y++)
1876-
{
1877-
SS2out << y << " " << SSB_yr(y) << " " << exp_rec(y) << " ";
1878-
if (recdev_do_early > 0 && y >= recdev_early_start && y <= recdev_early_end)
1879-
{
1880-
SS2out << log(exp_rec(y, 4) / exp_rec(y, 3)) << " " << biasadj(y) << " Early " << SSB_B_yr(y) << " " << SSB_N_yr(y) << " " << recdev(y);
1881-
}
1882-
else if (y >= recdev_start && y <= recdev_end)
1883-
{
1884-
SS2out << log(exp_rec(y, 4) / exp_rec(y, 3)) << " " << biasadj(y) << " Main " << SSB_B_yr(y) << " " << SSB_N_yr(y) << " " << recdev(y);
1885-
}
1886-
else if (Do_Forecast > 0 && y > recdev_end)
1887-
{
1888-
SS2out << log(exp_rec(y, 4) / exp_rec(y, 3)) << " " << biasadj(y);
1889-
if (y <= endyr)
1890-
{
1891-
SS2out << " Late ";
1892-
}
1893-
else
1894-
{
1895-
SS2out << " Fore ";
1896-
}
1897-
SS2out << SSB_B_yr(y) << " " << SSB_N_yr(y) << " ";
1898-
if (do_recdev > 0)
1899-
{
1900-
SS2out << Fcast_recruitments(y);
1901-
}
1902-
else
1903-
{
1904-
SS2out << " 0.0";
1905-
}
1906-
}
1907-
else
1908-
{
1909-
SS2out << " _ _ Fixed";
1910-
}
1911-
SS2out << endl;
1912-
}
1913-
1914-
*/
19151803
SS2out << endl << pick_report_name(19) << endl;
19161804
SS2out << SR_fxn << " # SR_Function" << endl;
19171805
SS2out << N_SRparm2 << " # N_SRparms" << endl;

0 commit comments

Comments
 (0)