Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Johannes Pfeifer
dynare
Commits
53ce6222
Verified
Commit
53ce6222
authored
Sep 03, 2019
by
Houtan Bastani
Browse files
remove unused variable in dynare_config
parent
d51208f2
Changes
6
Hide whitespace changes
Inline
Side-by-side
matlab/dynare.m
View file @
53ce6222
...
...
@@ -16,7 +16,7 @@ function dynare(fname, varargin)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2001-201
8
Dynare Team
% Copyright (C) 2001-201
9
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -66,7 +66,7 @@ end
check_matlab_path
(
change_path_flag
);
% Detect if MEX files are present; if not, use alternative M-files
dynareroot
=
dynare_config
(
''
,
preprocessoroutput
);
dynareroot
=
dynare_config
();
warning_config
()
...
...
matlab/dynare_config.m
View file @
53ce6222
function
dynareroot
=
dynare_config
(
path_to_dynare
,
verbose
)
function
dynareroot
=
dynare_config
(
path_to_dynare
)
%function dynareroot = dynare_config(path_to_dynare)
%
% This function tests the existence of valid mex files (for qz
% decomposition, solution to sylvester equation and kronecker
% products...) and, if needed, add paths to the matlab versions
...
...
@@ -15,7 +16,7 @@ function dynareroot = dynare_config(path_to_dynare, verbose)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2001-201
8
Dynare Team
% Copyright (C) 2001-201
9
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -41,10 +42,6 @@ dynareroot = strrep(which('dynare'),'dynare.m','');
origin
=
pwd
();
cd
([
dynareroot
'/..'
])
if
~
nargin
||
nargin
==
1
verbose
=
1
;
end
p
=
{
'/distributions/'
;
...
'/kalman/'
;
...
'/kalman/likelihood'
;
...
...
...
matlab/internals.m
View file @
53ce6222
...
...
@@ -79,7 +79,7 @@ more off
if
strcmpi
(
flag
,
'
-
-
test
'
)
if
nargin
>
1
dynare_path
=
dynare_config
(
[],
0
);
dynare_path
=
dynare_config
();
number_of_matlab_routines
=
length
(
varargin
);
for
i
=
1
:
number_of_matlab_routines
dtest
(
varargin
{
i
},[
dynare_path
'
..
'
filesep
'
tests
'
]);
...
...
@@ -175,7 +175,7 @@ end
if
strcmpi
(
flag
,
'
-
-
info
'
)
if
nargin
==
2
dynare_config
(
[],
0
);
dynare_config
();
dynInfo
(
varargin
{
1
})
else
if
nargin
<
2
...
...
matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m
View file @
53ce6222
...
...
@@ -207,14 +207,14 @@ end
%
$
cd
(
path_to_mex
);
%
$
tar
(
'
local_state_space_iteration_2
.
tar
'
,[
'
local_state_space_iteration_2
.
'
mexext
]);
%
$
cd
(
where_am_i_coming_from
);
%
$
dynare_config
(
[],
0
);
%
$
dynare_config
();
%
$
y1b
=
local_state_space_iteration_2
(
yhat
,
epsilon
,
ghx
,
ghu
,
constant
,
ghxx
,
ghuu
,
ghxu
,
1
);
%
$
[
y2b
,
y2b_
]
=
local_state_space_iteration_2
(
yhat
,
epsilon
,
ghx
,
ghu
,
constant
,
ghxx
,
ghuu
,
ghxu
,
yhat_
,
ss
,
1
);
%
$
cd
(
path_to_mex
);
%
$
untar
(
'
local_state_space_iteration_2
.
tar
'
);
%
$
delete
(
'
local_state_space_iteration_2
.
tar
'
);
%
$
cd
(
where_am_i_coming_from
);
%
$
dynare_config
(
[],
0
);
%
$
dynare_config
();
%
$
%
Check
the
results
.
%
$
t
(
1
)
=
dassert
(
y1a
,
y1b
);
%
$
t
(
2
)
=
dassert
(
y2a
,
y2b
);
...
...
tests/run_all_unitary_tests.m
View file @
53ce6222
% Copyright (C) 2013-201
7
Dynare Team
% Copyright (C) 2013-201
9
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -17,7 +17,7 @@
top_test_dir
=
getenv
(
'TOP_TEST_DIR'
);
addpath
([
top_test_dir
filesep
'..'
filesep
'matlab'
]);
dynare_config
(
[],
0
);
dynare_config
();
if
isoctave
load_octave_packages
...
...
tests/run_reporting_test_octave.m
View file @
53ce6222
## Copyright (C) 2013-201
7
Dynare Team
## Copyright (C) 2013-201
9
Dynare Team
##
## This file is part of Dynare.
##
...
...
@@ -31,7 +31,7 @@ endif
putenv("GNUTERM", "dumb")
## To add default directories, empty dseries objects
dynare_config(
[], 0
);
dynare_config();
printf("\n*** TESTING: run_reporting_test_octave.m ***\n");
try
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment