24 lines
523 B
Julia
24 lines
523 B
Julia
|
#clear workspace
|
||
|
workspace()
|
||
|
|
||
|
# 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
|
||
|
|
||
|
# Load Dynare package
|
||
|
importall Dynare
|
||
|
|
||
|
# Compile the rbc.mod file -> produce a module with the model definition.
|
||
|
|
||
|
|
||
|
@dynare "rbc1.mod" "rbc2.mod"
|
||
|
|
||
|
# The previous command is equivalent to:
|
||
|
#
|
||
|
# @compile "rbc1.mod"
|
||
|
# using rbc1
|
||
|
|
||
|
print(rbc1.model.fname)
|
||
|
print(rbc2.model.fname)
|