Skip to content

Commit 16cd878

Browse files
iantaylor-NOAAe-perl-NOAA
authored andcommitted
add fatal error when using MCMC with recdev option 1 (#590)
- inspired by discussion: #566
1 parent 95be4a1 commit 16cd878

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

SS_readcontrol_330.tpl

+11
Original file line numberDiff line numberDiff line change
@@ -2230,6 +2230,17 @@
22302230
22312231
init_int do_recdev // 0=none; 1=devvector; 2=simple deviations; 3=dev from R0
22322232
!!echoinput<<do_recdev<<" do_recdev"<<endl;
2233+
// check for use of devvector with MCMC
2234+
LOCAL_CALCS
2235+
// clang-format on
2236+
if (do_recdev == 1 & mcmcFlag == 1)
2237+
{
2238+
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.";
2239+
write_message (FATAL, 0);
2240+
}
2241+
// clang-format off
2242+
END_CALCS
2243+
22332244
init_int recdev_start;
22342245
!!echoinput<<recdev_start<<" recdev_start"<<endl;
22352246
init_int recdev_end;

0 commit comments

Comments
 (0)