Commit Graph

261 Commits (f6f4ea70fbce9fd584c72c15a2932fa02a854d0b)

Author SHA1 Message Date
Stéphane Adjemian (Hermes) 0f794948ff 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 50a4d50821 preprocessor: introduce new option compute_xrefs, #1125 2016-02-23 13:57:55 +01:00
Houtan Bastani de0ce35ee3 preprocessor: add equation cross references 2015-12-18 15:17:32 +01:00
Houtan Bastani 5884c04287 preprocessor: fix divergence of equations and aux_equations. closes #1110 2015-12-01 12:34:43 +01:00
Houtan Bastani 45919774ab Revert "preprocessor: write auxiliary variable definitions to matlab function"
This reverts commit ad81129a9b90dab50799bd4589b635420918cf1f.
2015-12-01 11:41:55 +01:00
Houtan Bastani fd1e0ee1e2 preprocessor: write auxiliary variable definitions to matlab function 2015-11-30 15:36:17 +01:00
Michel Juillard 74647e2872 fixed bug in col_id computation 2015-09-19 15:51:32 +02:00
Houtan Bastani 3117bf79f2 preprocessor: fix scoping problem with temporary variables 2015-09-04 15:28:06 +02:00
Houtan Bastani 0f75ddbd64 replace cend with end and cbegin with begin 2015-09-03 16:06:37 +02:00
Houtan Bastani 13be25314e preprocessor: rework temporary terms 2015-09-03 15:25:36 +02:00
Houtan Bastani 62249da603 preprocessor: fix bug introduced in eb2890d1f58f2285306821c85fa631b865fb80b6 2015-09-02 15:30:33 +02:00
Houtan Bastani 2618211859 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 eb2890d1f58f2285306821c85fa631b865fb80b6)
2015-09-02 15:30:25 +02:00
Houtan Bastani 7c28c672a4 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 eb2890d1f58f2285306821c85fa631b865fb80b6.
2015-09-02 15:29:52 +02:00
Houtan Bastani 7f014b94df 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 7cc90013cd Merge branch 'julia' 2015-09-01 11:35:16 +02:00
Michel Juillard a538e29f1e expand extended preprocessor + first implementation of Petsc interface 2015-08-27 10:00:51 +02:00
Michel Juillard 50097bc054 adding writeResidualsC() for external files 2015-08-24 14:53:27 +02:00
Houtan Bastani c35938929f remove fill!(residual, 0.0) statements as all elements of residual are assigned to 2015-08-21 17:13:38 +02:00
Houtan Bastani 5c0c9efd6f add @inbounds to model equations, temporary vars, and model vars 2015-08-21 17:13:38 +02:00
Houtan Bastani 4a4a4c1d54 clean up printing 2015-08-21 17:13:32 +02:00
Houtan Bastani 34e649afc7 add assertions at beginning of function call 2015-08-21 12:05:38 +02:00
Houtan Bastani fb51517ac7 fix comments in generated files 2015-08-21 12:00:47 +02:00
Houtan Bastani c1d3b521ed update static & dynamic function comments 2015-08-20 15:28:32 +02:00
Houtan Bastani 5789d1f33b check function output argument sizes 2015-08-20 15:26:10 +02:00
Houtan Bastani 87ddbce87b write third derivatives of static and dynamic functions more efficiently 2015-08-20 14:41:15 +02:00
Houtan Bastani 3419772879 fix typo in 357afaab47ebe52cecdffb8a7f8b12c754f22470 2015-08-20 14:02:22 +02:00
Houtan Bastani cb0b8c9ba3 update comments in static & dynamic funcitons 2015-08-20 12:27:43 +02:00
Houtan Bastani 046bc44e8a write Hessians of static and dynamic functions more efficiently 2015-08-20 12:18:19 +02:00
Houtan Bastani 4808c8a1ce replace zeros with fill! and remove spzeros in static and dynamic functions 2015-08-20 11:33:19 +02:00
Houtan Bastani a10efd7c4b replace empty sparse calls with spzeros 2015-08-19 17:12:06 +02:00
Houtan Bastani 1b0d63abe9 add types to dynamic, static, and steady_state function calls 2015-08-19 12:11:08 +02:00
Houtan Bastani cbe1027428 remove unnecessary get*Function functions 2015-08-19 11:28:25 +02:00
Houtan Bastani 73a25ed90c adding using Utils to dynamic & static files 2015-08-18 15:45:23 +02:00
Houtan Bastani dae79ecafb update dynamic model to use multiple dispatch 2015-08-18 15:32:30 +02:00
Houtan Bastani 88a87a911b remove unnecessary braces 2015-08-17 11:17:26 +02:00
Stéphane Adjemian (Charybdis) 756ff179ff Removed deprecated syntaxes. 2015-08-12 19:03:29 +02:00
Houtan Bastani ce7a172c21 preprocessor: issue warning when param used with lead/lag. closes #976 2015-07-30 14:40:03 +02:00
Houtan Bastani 6330fa0374 write dynamic model output
Conflicts:
	preprocessor/DynamicModel.cc
2015-07-29 14:59:09 +02:00
Houtan Bastani 54874efa72 Merge branch 'master' into julia 2015-07-29 14:53:35 +02:00
Houtan Bastani 22ac2f4f92 preprocessor: simplify writing of NNZDerivatives 2015-07-29 14:52:15 +02:00
Houtan Bastani 0a3a5a0a03 bug fix in writing of dynamic params derivs file 2015-07-29 10:40:30 +02:00
Houtan Bastani 389bb89a55 simplify modules created by preprocessor 2015-07-28 18:00:00 +02:00
Houtan Bastani d49e6e4156 wrie dynamic params deriv file 2015-07-28 14:59:55 +02:00
Houtan Bastani 2bb2682b50 write dynamic file 2015-07-27 17:02:51 +02:00
Houtan Bastani db3f2b3c06 move external file write functions to class definitions 2015-07-21 17:35:06 +02:00
Houtan Bastani 947ca38440 preprocessor: split creation of latex model files. closes #966 2015-07-15 08:58:15 +02:00
Houtan Bastani 4102e0cc56 Revert "Merge branch 'rmExtraExo'"
This reverts commit 28ffa9c56fd021cc75415aeafc13d3810d1b3132, reversing
changes made to 60b3577a09f3eb9cf3cc590241343b1f0fee8706.

Conflicts:
	preprocessor/Shocks.cc
	preprocessor/SymbolTable.cc
2015-06-09 16:42:51 +02:00
Houtan Bastani f6fb8bbf47 preprocessor: fix function call in reindexStaticOnlyEquations 2015-05-20 12:28:49 +02:00
Houtan Bastani a361980437 preprocessor: move all dynamic model reindexing to DynamicModel 2015-05-20 12:27:56 +02:00
Houtan Bastani 6a37dc9e21 Merge branch 'master' into rmExtraExo 2015-05-18 17:16:55 +02:00