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

add fatal error when using MCMC with recdev option 1 #590

Merged
merged 1 commit into from
May 24, 2024
Merged
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
11 changes: 11 additions & 0 deletions SS_readcontrol_330.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2168,6 +2168,17 @@

init_int do_recdev // 0=none; 1=devvector; 2=simple deviations; 3=dev from R0
!!echoinput<<do_recdev<<" do_recdev"<<endl;
// check for use of devvector with MCMC
LOCAL_CALCS
// clang-format on
if (do_recdev == 1 & mcmcFlag == 1)
{
warnstream << "do_recdev option 1=devvector should not be used with MCMC, recommend option 2=simple deviations. For more detail see https://github.com/admb-project/admb/issues/107.";
write_message (FATAL, 0);
}
// clang-format off
END_CALCS

init_int recdev_start;
!!echoinput<<recdev_start<<" recdev_start"<<endl;
init_int recdev_end;
Expand Down
Loading