From 79f68a5f326f361775d987510c7b1a659e114f5e Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@jrc.ec.europa.eu>
Date: Tue, 18 Nov 2014 15:14:23 +0100
Subject: [PATCH] 1) proper use of new nodecomposition option; 2) bug fix on
 variable list;

---
 matlab/compute_model_moments.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/matlab/compute_model_moments.m b/matlab/compute_model_moments.m
index 7b8e51457..1c89a5e07 100644
--- a/matlab/compute_model_moments.m
+++ b/matlab/compute_model_moments.m
@@ -28,4 +28,5 @@ function moments=compute_model_moments(dr,M_,options_)
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-moments = th_autocovariances(dr,options_.varlist,M_,options_);
+[ivar,vartan,options_] = get_variables_list(options_,M_);
+moments = th_autocovariances(dr,ivar,M_,options_,options_.nodecomposition);
-- 
GitLab