Page 1 of 1

Error message that says a variable r has been declared twice

PostPosted: Mon Sep 10, 2012 12:43 pm
by lebeko
Hi,

I am trying to run my mod file and I get the following error,



Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.2.5).
Starting preprocessing of the model file ...
ERROR: MPFP.mod:6.12-104: Symbol r declared twice with different types!

??? Error using ==> dynare at 114
DYNARE: preprocessing failed

Re: Error message that says a variable r has been declared t

PostPosted: Mon Sep 10, 2012 1:15 pm
by vincent53nhl
1. In the 6th row, there should not be a space between 'rho_' and 'r';

2. There should be an 'end' before the 'initval' section, and you type the 'initval' wrong.

3. There are convergence problems, thus recheck the correctness of model and initial conditons again.