Commit Graph

262 Commits (df20a394fc577dbb3361b02a5de8fffe5f0c8908)

Author SHA1 Message Date
Johannes Pfeifer f37d3afb14 Add headers for param_derivs-files 2016-03-29 15:57:49 +02:00
Stéphane Adjemian (Hermes) 127637ffd6 Merge branch 'temporary_terms'
Do not evaluate unnecessary temporary variables (for instance those
used in the evaluation of the jacobian matrix when we only compute the
residuals of the dynamic equations).
2016-03-09 17:53:58 +01:00
Houtan Bastani 8c2e6655f1 preprocessor: introduce new option compute_xrefs, #1125 2016-02-23 13:57:55 +01:00
Houtan Bastani 4976b2b335 preprocessor: add equation cross references 2015-12-18 15:17:32 +01:00
Houtan Bastani 15716124fa preprocessor: fix divergence of equations and aux_equations. closes #1110 2015-12-01 12:34:43 +01:00
Houtan Bastani 4ff17d6191 Revert "preprocessor: write auxiliary variable definitions to matlab function"
This reverts commit ad81129a9b.
2015-12-01 11:41:55 +01:00
Houtan Bastani ad81129a9b preprocessor: write auxiliary variable definitions to matlab function 2015-11-30 15:36:17 +01:00
Michel Juillard df793cebe5 fixed bug in col_id computation 2015-09-19 15:51:32 +02:00
Houtan Bastani ae8d5774b7 preprocessor: fix scoping problem with temporary variables 2015-09-04 15:28:06 +02:00
Houtan Bastani 5bd51d65e8 replace cend with end and cbegin with begin 2015-09-03 16:06:37 +02:00
Houtan Bastani dc441b41b8 preprocessor: rework temporary terms 2015-09-03 15:25:36 +02:00
Houtan Bastani 0fdf76dcf7 preprocessor: fix bug introduced in eb2890d1f5 2015-09-02 15:30:33 +02:00
Houtan Bastani 2846a7023d preprocessor: julia: print only those temporary vars needed for the computation of (residuals, g1, g2, g3) in the respective dynamic! and static! functions
(cherry picked from commit eb2890d1f5)
2015-09-02 15:30:25 +02:00
Houtan Bastani 9b525713d9 Revert "preprocessor: julia: print only those temporary vars needed for the computation of (residuals, g1, g2, g3) in the respective dynamic! and static! functions"
This reverts commit eb2890d1f5.
2015-09-02 15:29:52 +02:00
Houtan Bastani eb2890d1f5 preprocessor: julia: print only those temporary vars needed for the computation of (residuals, g1, g2, g3) in the respective dynamic! and static! functions 2015-09-01 18:29:10 +02:00
Houtan Bastani 11eaf27453 Merge branch 'julia' 2015-09-01 11:35:16 +02:00
Michel Juillard c9f771973d expand extended preprocessor + first implementation of Petsc interface 2015-08-27 10:00:51 +02:00
Michel Juillard 3ed1d01ba9 adding writeResidualsC() for external files 2015-08-24 14:53:27 +02:00
Houtan Bastani 1d17f6b770 remove fill!(residual, 0.0) statements as all elements of residual are assigned to 2015-08-21 17:13:38 +02:00
Houtan Bastani d2c3debeb8 add @inbounds to model equations, temporary vars, and model vars 2015-08-21 17:13:38 +02:00
Houtan Bastani 2a9761ff33 clean up printing 2015-08-21 17:13:32 +02:00
Houtan Bastani 5666e12e8f add assertions at beginning of function call 2015-08-21 12:05:38 +02:00
Houtan Bastani 59122a1e73 fix comments in generated files 2015-08-21 12:00:47 +02:00
Houtan Bastani 73a0ad51d6 update static & dynamic function comments 2015-08-20 15:28:32 +02:00
Houtan Bastani a686a47ce7 check function output argument sizes 2015-08-20 15:26:10 +02:00
Houtan Bastani b00ed9f0a4 write third derivatives of static and dynamic functions more efficiently 2015-08-20 14:41:15 +02:00
Houtan Bastani 129c8d9e46 fix typo in 357afaab47 2015-08-20 14:02:22 +02:00
Houtan Bastani 357afaab47 update comments in static & dynamic funcitons 2015-08-20 12:27:43 +02:00
Houtan Bastani c4d3eb5b3c write Hessians of static and dynamic functions more efficiently 2015-08-20 12:18:19 +02:00
Houtan Bastani a244754a15 replace zeros with fill! and remove spzeros in static and dynamic functions 2015-08-20 11:33:19 +02:00
Houtan Bastani 6572b6f14f replace empty sparse calls with spzeros 2015-08-19 17:12:06 +02:00
Houtan Bastani 0f76765bd8 add types to dynamic, static, and steady_state function calls 2015-08-19 12:11:08 +02:00
Houtan Bastani d65e9306cb remove unnecessary get*Function functions 2015-08-19 11:28:25 +02:00
Houtan Bastani 6ac346606b adding using Utils to dynamic & static files 2015-08-18 15:45:23 +02:00
Houtan Bastani 252688cf4a update dynamic model to use multiple dispatch 2015-08-18 15:32:30 +02:00
Houtan Bastani cf3cdf0d59 remove unnecessary braces 2015-08-17 11:17:26 +02:00
Stéphane Adjemian (Charybdis) 9556d37fd6 Removed deprecated syntaxes. 2015-08-12 19:03:29 +02:00
Houtan Bastani c88c17728e preprocessor: issue warning when param used with lead/lag. closes #976 2015-07-30 14:40:03 +02:00
Houtan Bastani 8f92b975e4 write dynamic model output
Conflicts:
	preprocessor/DynamicModel.cc
2015-07-29 14:59:09 +02:00
Houtan Bastani 114b446bff Merge branch 'master' into julia 2015-07-29 14:53:35 +02:00
Houtan Bastani f26551509c preprocessor: simplify writing of NNZDerivatives 2015-07-29 14:52:15 +02:00
Houtan Bastani 2b7fc247f7 bug fix in writing of dynamic params derivs file 2015-07-29 10:40:30 +02:00
Houtan Bastani bc49d06e61 simplify modules created by preprocessor 2015-07-28 18:00:00 +02:00
Houtan Bastani b5be9b7437 wrie dynamic params deriv file 2015-07-28 14:59:55 +02:00
Houtan Bastani 25ae46e204 write dynamic file 2015-07-27 17:02:51 +02:00
Houtan Bastani c604d9da38 move external file write functions to class definitions 2015-07-21 17:35:06 +02:00
Houtan Bastani 7740fdaca0 preprocessor: split creation of latex model files. closes #966 2015-07-15 08:58:15 +02:00
Houtan Bastani 383a852c9c Revert "Merge branch 'rmExtraExo'"
This reverts commit 28ffa9c56f, reversing
changes made to 60b3577a09.

Conflicts:
	preprocessor/Shocks.cc
	preprocessor/SymbolTable.cc
2015-06-09 16:42:51 +02:00
Houtan Bastani 61ffed3eff preprocessor: fix function call in reindexStaticOnlyEquations 2015-05-20 12:28:49 +02:00
Houtan Bastani eb5f56703f preprocessor: move all dynamic model reindexing to DynamicModel 2015-05-20 12:27:56 +02:00