From 6f11442c7b54dc94be442715048f1bb676200d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 7 May 2010 18:18:24 +0200 Subject: [PATCH] Estimation DLL: fix to testModelSolution --- mex/sources/estimation/tests/testModelSolution.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mex/sources/estimation/tests/testModelSolution.cc b/mex/sources/estimation/tests/testModelSolution.cc index 3a6ad7e61..20709a049 100644 --- a/mex/sources/estimation/tests/testModelSolution.cc +++ b/mex/sources/estimation/tests/testModelSolution.cc @@ -39,7 +39,7 @@ main (int argc, char** argv) std::vector zeta_mixed_arg; std::vector zeta_static_arg; double qz_criterium=1.0+1.0e-9; - Vector steadyState(n_endo), deepParams(npar); + Vector deepParams(npar); double dYSparams [] = { 1.0110, 2.2582, 0.4477, 1.0000, @@ -66,8 +66,7 @@ main (int argc, char** argv) VectorView modParamsVW (dparams, npar,1); deepParams=modParamsVW; - VectorView steadyStateVW(dYSparams,n_endo,1); - steadyState=steadyStateVW; + VectorView steadyState(dYSparams,n_endo,1); std::cout << "Vector deepParams: " << std::endl << deepParams << std::endl; std::cout << "Matrix vCov: " << std::endl << vCov << std::endl; std::cout << "Vector steadyState: " << std::endl << steadyState << std::endl;