Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repair_check_on_Nparms_in_parfile #491

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SS_param.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ PARAMETER_SECTION
init_bounded_vector_vector parm_dev(1,N_parm_dev,parm_dev_minyr,parm_dev_maxyr,-10,10,parm_dev_PH)
matrix parm_dev_rwalk(1,N_parm_dev,parm_dev_minyr,parm_dev_maxyr);

init_bounded_number checksum999(998,1000,-999) // set value to 999 to check reading of ss.par
init_bounded_number checksum999(998,1000,-1) // value must be 999 to check reading of ss.par
vector timevary_parm(1,timevary_parm_cnt); // holds the link parameters; in SS_timevaryparm these are set to actual parms in MGparms, SRparms, Qparms, selparms
matrix parm_timevary(1,timevary_cnt,styr-1,YrMax); // time series of adjusted parm values for block and trend

Expand Down
10 changes: 10 additions & 0 deletions SS_prelim.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,16 @@
}
echoinput << " Tag_parms read from ctl " << TG_parm << endl;
}
checksum999 = 999.;
}
else
{
echoinput << "checksum from par file "<<checksum999<<endl;
if (checksum999 != 999.)
{
warnstream << "error on ss.par read; final value was not 999; total number parms changed " << checksum999;
write_message (FATAL, 1);
}
}

// SS_Label_Info_6.5 #Check parameter bounds and do jitter
Expand Down
Loading