2015-08-12 18:37:41 +02:00
|
|
|
# Modification of the path (for packages). Should be done in ~/.juliarc.jl with a fixed path instead.
|
2015-08-17 12:29:59 +02:00
|
|
|
if isempty(findin([abspath("../../../julia")], LOAD_PATH))
|
|
|
|
unshift!(LOAD_PATH, abspath("../../../julia"))
|
|
|
|
end
|
2015-08-12 18:37:41 +02:00
|
|
|
|
|
|
|
# Load Dynare package
|
2015-08-13 11:11:50 +02:00
|
|
|
importall Dynare
|
2015-08-12 18:37:41 +02:00
|
|
|
|
|
|
|
# Compile the rbc.mod file -> produce a module with the model definition.
|
2016-05-19 12:26:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
@dynare "rbc1.mod" "rbc2.mod"
|
|
|
|
|
|
|
|
# The previous command is equivalent to:
|
|
|
|
#
|
2016-05-19 12:51:29 +02:00
|
|
|
# @compile "rbc1.mod"
|
|
|
|
# using rbc1
|
2016-05-19 12:26:08 +02:00
|
|
|
|
2016-05-19 18:32:48 +02:00
|
|
|
print(rbc1.model_.fname)
|
|
|
|
print(rbc2.model_.fname)
|