Source of _dynamic.m

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

Yes. You will need to modify the writeDynamicMFile function in github.com/DynareTeam/dynare/blob/master/preprocessor/DynamicModel.cc and recompile the preprocessor following the instructions for your OS, which can be found here: github.com/DynareTeam/dynare/blob/master/README.md