-
- Downloads
Block decomposition: another fix related to temporary terms refactoring
Temporary terms need to be computed per equation (as was done previously), and not simply per block. It’s necessary to track temporary terms per equation, because some equations are evaluated instead of solved, and an equation E1 may depend on the value of an endogenous Y computed by a previously evaluated equation E2; in this case, if some temporary term TT of equation E2 contains Y, then TT needs to be computed after E1, but before E2.
Showing
- src/DynamicModel.cc 75 additions, 54 deletionssrc/DynamicModel.cc
- src/DynamicModel.hh 2 additions, 2 deletionssrc/DynamicModel.hh
- src/ExprNode.cc 55 additions, 51 deletionssrc/ExprNode.cc
- src/ExprNode.hh 22 additions, 20 deletionssrc/ExprNode.hh
- src/ModelTree.cc 24 additions, 10 deletionssrc/ModelTree.cc
- src/ModelTree.hh 14 additions, 4 deletionssrc/ModelTree.hh
- src/StaticModel.cc 70 additions, 57 deletionssrc/StaticModel.cc
Loading
Please register or sign in to comment