From 14fbcee2de3cdc7d48d01c4ba363dad161ee296c Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 23 Sep 2021 12:48:08 +0200
Subject: [PATCH] set_dynare_threads.m: fix naming bug

(cherry picked from commit 5f27d2e46909d1db619d7162aeb4d8a57d7cf360)
---
 matlab/set_dynare_threads.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/set_dynare_threads.m b/matlab/set_dynare_threads.m
index 793e898c0e..bc0dfe309f 100644
--- a/matlab/set_dynare_threads.m
+++ b/matlab/set_dynare_threads.m
@@ -41,7 +41,7 @@ switch mexname
   case 'local_state_space_iteration_2'
     options_.threads.local_state_space_iteration_2 = n;
   case 'local_state_space_iteration_k'
-    options_.threads.local_state_space_iteration_2 = n;
+    options_.threads.local_state_space_iteration_k = n;
   case 'perfect_foresight_problem'
     options_.threads.perfect_foresight_problem = n;
   case 'k_order_perturbation'
-- 
GitLab