Commit 397d5319 authored by stepan's avatar stepan
Browse files

Bug fix. Variable use_dll_flag is not defined if remote computers are not...

Bug fix. Variable use_dll_flag is not defined if remote computers are not used. Don't need to compile the 
(dynamic model) mex file in this case.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3366 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 46cf2ea2
......@@ -116,7 +116,7 @@ if nargin>3
end
end
% If needed, compile dynamic model mex file on each remote computer
if use_dll_flag
if ~strcmpi(hostname,parallel(i).machine) && use_dll_flag
% Write a matlab script that will trigger the compilation of the mex file.
fid = fopen('compile_model.m', 'w');
fprintf(fid,[' eval(''mex -O LDFLAGS=''''-pthread -shared -Wl,--no-undefined'''' ' M_.fname '_dynamic.c'') ']);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment