Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
dynare
Commits
25243712
Commit
25243712
authored
8 years ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug on non linux platforms + Cosmetic changes.
The paths to mex files was wrong.
parent
e214ec29
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/add_path_to_mex_files.m
+1
-1
1 addition, 1 deletion
matlab/add_path_to_mex_files.m
matlab/dynare_config.m
+16
-10
16 additions, 10 deletions
matlab/dynare_config.m
with
17 additions
and
11 deletions
matlab/add_path_to_mex_files.m
+
1
−
1
View file @
25243712
...
...
@@ -69,7 +69,7 @@ else
end
% Add generic MATLAB path (with higher priority than the previous ones)
if
exist
(
'mexpath'
)
mexpath
=
{
mexpath
,
[
dynareroot
'../mex/matlab/'
]
};
mexpath
=
{
mexpath
;
[
dynareroot
'../mex/matlab/'
]
};
else
mexpath
=
{
[
dynareroot
'../mex/matlab/'
]
};
end
...
...
This diff is collapsed.
Click to expand it.
matlab/dynare_config.m
+
16
−
10
View file @
25243712
...
...
@@ -107,14 +107,18 @@ if (isoctave && ~user_has_octave_forge_package('statistics')) ...
p
{
end
+
1
}
=
'/missing/nanmean'
;
end
P
=
cellfun
(
@
(
c
)[
dynareroot
c
],
p
,
'uni'
,
false
);
P
=
cellfun
(
@
(
c
)[
dynareroot
(
1
:
end
-
1
)
c
],
p
,
'uni'
,
false
);
%
Add
mex files folder
P
(
end
+
1
)
=
add_path_to_mex_files
(
dynareroot
,
false
);
%
Get
mex files folder
(s)
mexpaths
=
add_path_to_mex_files
(
dynareroot
,
false
);
% Add mex files folder(s)
P
(
end
+
1
:
end
+
length
(
mexpaths
))
=
mexpaths
;
% Set matlab's path
addpath
(
P
{:});
%
% Set mex routine names
% Set mex routine names
mex_status
=
cell
(
1
,
3
);
mex_status
(
1
,
1
)
=
{
'mjdgges'
};
mex_status
(
1
,
2
)
=
{
'qz'
};
...
...
@@ -132,9 +136,10 @@ mex_status(5,1) = {'local_state_space_iteration_2'};
mex_status
(
5
,
2
)
=
{
'reduced_form_models/local_state_space_iteration_2'
};
mex_status
(
5
,
3
)
=
{
'Local state space iteration (second order)'
};
number_of_mex_files
=
size
(
mex_status
,
1
);
%% Remove some directories from matlab's path. This is necessary if the user has
%% added dynare_v4/matlab with the subfolders. Matlab has to ignore these
%% subfolders if valid mex files exist.
% Remove some directories from matlab's path. This is necessary if the user has
% added dynare_v4/matlab with the subfolders. Matlab has to ignore these
% subfolders if valid mex files exist.
matlab_path
=
path
;
for
i
=
1
:
number_of_mex_files
test
=
strfind
(
matlab_path
,[
dynareroot
mex_status
{
i
,
2
}]);
...
...
@@ -144,8 +149,9 @@ for i=1:number_of_mex_files
matlab_path
=
path
;
end
end
%% Test if valid mex files are available, if a mex file is not available
%% a matlab version of the routine is included in the path.
% Test if valid mex files are available, if a mex file is not available
% a matlab version of the routine is included in the path.
if
verbose
skipline
()
disp
(
'Configuring Dynare ...'
)
...
...
@@ -218,4 +224,4 @@ end
% Initialization of the dates and dseries classes (recursive).
initialize_dseries_toolbox
;
cd
(
origin
);
cd
(
origin
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment