From f185d15c36902de291c39d5120423ad0b29a1108 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Fri, 11 Dec 2015 18:26:07 +0100
Subject: [PATCH] Fixed bug introduced in
 ed114ee8f047ee823b4dff1fe514ea4b2de180ae.

---
 matlab/gsa/stab_map_.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/gsa/stab_map_.m b/matlab/gsa/stab_map_.m
index 767d82fa63..2f51a1170e 100644
--- a/matlab/gsa/stab_map_.m
+++ b/matlab/gsa/stab_map_.m
@@ -99,7 +99,7 @@ p4 = bayestopt_.p4(nshock+1:end);
 [junk1,junk2,junk3,lb,ub,junk4] = set_prior(estim_params_,M_,options_); %Prepare bounds
 if ~isempty(bayestopt_) && any(bayestopt_.pshape > 0)
     % Set prior bounds
-    bounds = prior_bounds(bayestopt_, options_.trunc);
+    bounds = prior_bounds(bayestopt_, options_.prior_trunc);
     bounds.lb = max(bounds.lb,lb);
     bounds.ub = min(bounds.ub,ub);
 else  % estimated parameters but no declared priors
-- 
GitLab