Commit Graph

11 Commits (beb7d42d748f9f0f5216ed7aca93dceb4f73df2c)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) e4dee8ef61 Fixed compatibility issues with julia 0.5. 2016-12-01 13:32:54 +01:00
Stéphane Adjemian (Hermes) c3b5aee714 Specialize @dynare macro if one model is processed.
In this case importall is used instead of import.
2016-05-23 13:48:19 +02:00
Stéphane Adjemian (Hermes) 5998558c32 Fixed deprecated require issue + Changed interface
+ Fixed deprecated require().

+ Changed @dynare macro and added new macro @compile.
  The new macro @compile just runs the preprocessor, while the macro
  @dynare calls compile and put the generated objects in the
  workspace. Note that this macro can take an arbitrary number of mod
  files as argument.

      *Example*

      @dynare "rbc.mod" "nk.mod"

      Will run the preprocessor on both models, and the generated
      data (model descriptions, options, ...) are available in the
      workspace. For instance, to obtain the number of equations:

	julia> rbc.model.eq_nbr
   	6

   	julia> nk.model.eq_nbr
   	10

   	@compile "rbc.mod" "nk.mod"

   	Will run the preprocessor on both models, but will not load the
   	generated data in the workspace. This can be done as follows:

   	julia> using rbc

+ Changed examples (rbc1 has a steady state block but not rbc2), using
  new interface.
2016-05-23 13:48:19 +02:00
Houtan Bastani 3fffcc2a3f Use Julia 4.0 syntax
This reverts commit d208391c6d.
2015-09-01 11:05:39 +02:00
Houtan Bastani a917d5e998 only add path to LOAD_PATH if it is not already there 2015-08-17 12:29:59 +02:00
Houtan Bastani d208391c6d undo change introduced in 9556d37fd6 because this breaks functionality in 0.3.2 2015-08-17 11:44:53 +02:00
Stéphane Adjemian (Charybdis) ed12ea429b Added @dynare macro. 2015-08-13 11:11:50 +02:00
Stéphane Adjemian (Charybdis) 9556d37fd6 Removed deprecated syntaxes. 2015-08-12 19:03:29 +02:00
Houtan Bastani 53cb8fc639 add cwd to LOAD_PATH 2015-07-28 11:55:38 +02:00
Houtan Bastani d70817ba1e julia: initial preprocessor stub 2015-07-21 18:02:34 +02:00
Houtan Bastani 5b7acbf514 julia: first draft: call preprocessor, define model, utils 2015-07-21 16:05:02 +02:00