From 248dac4bc76e42e3e767436dbfd8d4cc125f0157 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 15 Jun 2022 15:35:54 +0200
Subject: [PATCH] =?UTF-8?q?Rename=20=E2=80=9Cparallel=5Fslave=5Fopen=5Fmod?=
 =?UTF-8?q?e=E2=80=9D=20option=20to=20=E2=80=9Cparallel=5Ffollower=5Fopen?=
 =?UTF-8?q?=5Fmode=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

But still accept the old name for backward compatibility.

Closes: #86
---
 src/DynareMain.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/DynareMain.cc b/src/DynareMain.cc
index fee13b3a..25f2b91a 100644
--- a/src/DynareMain.cc
+++ b/src/DynareMain.cc
@@ -49,7 +49,7 @@ void
 usage()
 {
   cerr << "Dynare usage: dynare mod_file [debug] [noclearall] [onlyclearglobals] [savemacro[=macro_file]] [onlymacro] [linemacro] [notmpterms] [nolog] [warn_uninit]"
-       << " [console] [nograph] [nointeractive] [parallel[=cluster_name]] [conffile=parallel_config_path_and_filename] [parallel_slave_open_mode] [parallel_test] [parallel_use_psexec=true|false]"
+       << " [console] [nograph] [nointeractive] [parallel[=cluster_name]] [conffile=parallel_config_path_and_filename] [parallel_follower_open_mode] [parallel_test] [parallel_use_psexec=true|false]"
        << " [-D<variable>[=<value>]] [-I/path] [nostrict] [stochastic] [fast] [minimal_workspace] [compute_xrefs] [output=second|third] [language=matlab|julia]"
        << " [params_derivs_order=0|1|2] [transform_unary_ops] [exclude_eqs=<equation_tag_list_or_file>] [include_eqs=<equation_tag_list_or_file>]"
        << " [json=parse|check|transform|compute] [jsonstdout] [onlyjson] [jsonderivsimple] [nopathchange] [nopreprocessoroutput]"
@@ -227,7 +227,8 @@ main(int argc, char **argv)
             }
           parallel_config_file = s.substr(9);
         }
-      else if (s == "parallel_slave_open_mode")
+      else if (s == "parallel_follower_open_mode"
+               || s == "parallel_slave_open_mode") // Kept for backward compatibility, see #86
         parallel_slave_open_mode = true;
       else if (s == "parallel_test")
         parallel_test = true;
-- 
GitLab