Page 1 of 1

source of _dynamic.m

PostPosted: Thu Nov 26, 2015 4:24 pm
by xuyongdeng
Hi jpfeifer,

I want to make use the _dynamic.m file to somewhere else. So I need to change the _dynamic.m file a little bit to satisfy the requirement there. for example, to change the output to be "residuals, lhs and rhs". I was just wondering how do you get _dynamic.m file from .mod file. Can I access the source code and make the changes?

Thanks again for your help.

Regards
Daniel

Re: source of _dynamic.m

PostPosted: Fri Nov 27, 2015 11:59 am
by HoutanBastani
Yes. You will need to modify the
Code: Select all
writeDynamicMFile
function in https://github.com/DynareTeam/dynare/blob/master/preprocessor/DynamicModel.cc and recompile the preprocessor following the instructions for your OS, which can be found here: https://github.com/DynareTeam/dynare/blob/master/README.md