dynare/tests/julia/rbc/test3.jl

22 lines
496 B
Julia
Raw Normal View History

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.
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.
@dynare "rbc1.mod" "rbc2.mod"
# The previous command is equivalent to:
#
2016-05-19 12:51:29 +02:00
# @compile "rbc1.mod"
# using rbc1
print(rbc1.model_.fname)
print(rbc2.model_.fname)