Question regarding Preprocessor

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.

Question regarding Preprocessor

Postby jpfeifer » Wed Dec 22, 2010 9:32 am

Hi,
is there a doumentation of available preprocessor commands (like e.g. noclearall) somewhere?
And is there a possibility/command option to prevent Dynare from
1. creating Tex-names for every variable
2. saving the solutions to a mat-file on the harddisk
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Question regarding Preprocessor

Postby MichelJuillard » Thu Jan 06, 2011 1:39 pm

jpfeifer wrote:Hi,
is there a doumentation of available preprocessor commands (like e.g. noclearall) somewhere?

see http://www.dynare.org/manual/re01.html
And is there a possibility/command option to prevent Dynare from
1. creating Tex-names for every variable

I don't understand: these names are not used unless you use the TEX option
[quote
2. saving the solutions to a mat-file on the harddisk[/quote]

The solutions are in oo_.dr that is save in <filename>_results.mat

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: Question regarding Preprocessor

Postby jpfeifer » Thu Jan 06, 2011 5:50 pm

Dear Michel,
Thanks a lot for your answer. Sorry, I somehow overlooked this part in the manual.

The second part of my question was probably badly formulated. My problem was that I use an external Matlab program that invokes Dynare to extract some outputs. When looking at the .m-file generated by the preprocessor I saw that both the Tex-names part and the saving the results to a .mat-file are redundant in this case as I do not use them. That's why I was wondering if there is a simple way to shut these features off. But never mind, I now circumvent this issue by running the Dynare preprocessor once to generate the .m-file and then using the respective code-parts without Tex-names and saving to hard-disk.

However, in general I would still like to have the option to tell Dynare whether to save the results to the harddisk or not. For most smaller models this is no problem and happens in no time, but for higher order approximations, the files can become huge (in the hundreds of megabytes). Hence, I would like to be able to shut off saving them when I am sure I am not going to need them anyway.

Kind regards,

Johannes
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Question regarding Preprocessor

Postby MichelJuillard » Thu Jan 06, 2011 7:13 pm

you can just write
oo_ = [];

at the end of your *.mod file and Dynare will save an empty matrix.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests