Dynare v4.2.0 keeps complains warning when run mod file

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.

Dynare v4.2.0 keeps complains warning when run mod file

Postby ahnulxy » Thu Mar 24, 2016 8:35 am

Anybody can help to shut off the noisy warning. The warning keeps showing up whenever I run mod files.

Warning: The RandStream.setDefaultStream static method will be removed in a future release. Use
RandStream.setGlobalStream instead.
> In RandStream.RandStream>RandStream.setDefaultStream at 456
In set_dynare_seed at 35
In global_initialization at 319
In welfare_loss at 14
In dynare at 132
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: Dynare v4.2.0 keeps complains warning when run mod file

Postby jpfeifer » Thu Mar 24, 2016 8:41 am

Please update Dynare. If you need 4.2, you need to identify the warning identifier and shut it off. If this was the last warning, you can use
Code: Select all
[msgstr, msgid] = lastwarn

and then
Code: Select all
warning('off',msgid)
------------
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: Dynare v4.2.0 keeps complains warning when run mod file

Postby ahnulxy » Thu Mar 24, 2016 4:37 pm

jpfeifer wrote:Please update Dynare. If you need 4.2, you need to identify the warning identifier and shut it off. If this was the last warning, you can use
Code: Select all
[msgstr, msgid] = lastwarn

and then
Code: Select all
warning('off',msgid)


It does not work. Here is the info.

>> [msgstr, msgid] = lastwarn
msgstr =
The RandStream.setDefaultStream static method will be removed in a future release. Use RandStream.setGlobalStream instead.
msgid =
MATLAB:RandStream:SetDefaultStream
>> warning('off',msgid)
>> dynare welfare_loss

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.0).
Starting preprocessing of the model file ...
Found 22 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
- order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

Warning: The RandStream.setDefaultStream static method will be removed in a future release. Use
RandStream.setGlobalStream instead.
> In RandStream.RandStream>RandStream.setDefaultStream at 456
In set_dynare_seed at 35
In global_initialization at 319
In welfare_loss at 15
In dynare at 132
Total computing time : 0h00m01s
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: Dynare v4.2.0 keeps complains warning when run mod file

Postby jpfeifer » Tue Mar 29, 2016 8:29 am

Sorry, but I don't have a setup where I can test this. You should probably just ignore the warning or update your system.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests