Error message that says a variable r has been declared twice

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Error message that says a variable r has been declared twice

Postby lebeko » Mon Sep 10, 2012 12:43 pm

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
Attachments
MPFP.mod
(2.07 KiB) Downloaded 142 times
lebeko
 
Posts: 3
Joined: Mon Sep 10, 2012 12:33 pm

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

Postby vincent53nhl » Mon Sep 10, 2012 1:15 pm

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.
vincent53nhl
 
Posts: 6
Joined: Fri Apr 20, 2012 9:53 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests