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
Dynare
dynare
Commits
902a5d27
Commit
902a5d27
authored
May 12, 2015
by
Houtan Bastani
Browse files
ensure that mex file exists before doing comparison
parent
8c480aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/utilities/general/dyn_mex.m
View file @
902a5d27
...
...
@@ -37,9 +37,11 @@ Dmex = dir([basename '_dynamic.' mexext]);
% compile only if date of C file is greater than date of mex file
% and force is not True
if
(
Dmex
.
datenum
>
Dc
.
datenum
)
&&
~
force
disp
(
'Mex files are newer than the source: not recompiled'
)
return
if
~
isempty
(
Dmex
)
if
(
Dmex
.
datenum
>
Dc
.
datenum
)
&&
~
force
disp
(
'Mex files are newer than the source: not recompiled'
)
return
end
end
if
~
exist
(
'OCTAVE_VERSION'
)
...
...
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