-
- Downloads
introduce command line options: `exclude_eqs` and `include_eqs`
Allows for the inclusion/exclusion of a set of equations, specified either on the command line or in a text file. If the equation has a single endogenous variable on the LHS, then the equation is moved. If not, if the equation has an `endogenous` tag then that variable is removed along with this equation. If not, then an error is thrown. As a command line argument, `exclude_eqs` can take the form (same syntax for `include_eqs`): * `exclude_eqs=eq1 to remove all equations declared as `[name=eq1]` * `exclude_eqs=[eq 1, eq 2]` to remove all equations declared as `[name=eq 1]` or `[name=eq 2]` * `exclude_eqs=[tagname=X]` to remove all equations declared as `[tagname=X]` * `exclude_eqs=[tagname=(X, Y)]` to remove all equations declared as `[tagname=X]` or `[tagname=Y]` When declared in a file, the file should be of the form: ``` eq 1 eq 2 ``` to remove all equations declared as `[name=eq 1]` or `[name=eq 2]`. It should be of the form: ``` tagname= X Y ``` to remove all equations declared as `[tagname=X]` or `[tagname=Y]`.
Showing
- src/CodeInterpreter.hh 2 additions, 1 deletionsrc/CodeInterpreter.hh
- src/DynamicModel.cc 193 additions, 5 deletionssrc/DynamicModel.cc
- src/DynamicModel.hh 32 additions, 0 deletionssrc/DynamicModel.hh
- src/DynareMain.cc 28 additions, 2 deletionssrc/DynareMain.cc
- src/DynareMain2.cc 3 additions, 1 deletionsrc/DynareMain2.cc
- src/ExprNode.cc 12 additions, 0 deletionssrc/ExprNode.cc
- src/ModFile.cc 4 additions, 1 deletionsrc/ModFile.cc
- src/ModFile.hh 2 additions, 1 deletionsrc/ModFile.hh
- src/ModelTree.cc 98 additions, 0 deletionssrc/ModelTree.cc
- src/ModelTree.hh 7 additions, 3 deletionssrc/ModelTree.hh
- src/NumericalInitialization.cc 19 additions, 6 deletionssrc/NumericalInitialization.cc
Loading
Please register or sign in to comment