From b82301465712f05e2fa310a0e5a91b32f2597a11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Wed, 6 Jun 2012 17:08:27 +0200
Subject: [PATCH] Fix calib_smoother (enforce order=1)

---
 doc/dynare.texi                | 3 ++-
 preprocessor/ComputingTasks.cc | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/dynare.texi b/doc/dynare.texi
index 06bfd9b9fd..e463208844 100644
--- a/doc/dynare.texi
+++ b/doc/dynare.texi
@@ -4542,7 +4542,8 @@ This command computes the smoothed variables (and possible the filtered
 variables) on a @code{calibrated} model.
 
 A datafile must be provided, and the observable variables declared with
-@code{varobs}.
+@code{varobs}. The smoother is based on a first-order approximation of
+the model.
 
 @vindex oo_.SmoothedVariables
 @vindex oo_.SmoothedShocks
diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc
index 25823649f5..39f3e1f1f5 100644
--- a/preprocessor/ComputingTasks.cc
+++ b/preprocessor/ComputingTasks.cc
@@ -2332,5 +2332,6 @@ CalibSmootherStatement::writeOutput(ostream &output, const string &basename) con
   symbol_list.writeOutput("var_list_", output);
   output << "options_.mode_compute = 0;" << endl
          << "options_.smoother = 1;" << endl
+         << "options_.order = 1;" << endl
          << "dynare_estimation(var_list_);" << endl;
 }
-- 
GitLab