Commit 868ef77d authored by stepan's avatar stepan
Browse files

Tests if master is running a job. Master has to run a job, otherwise we

cannot define a time limit for the evaluation of the objective function. 




git-svn-id: https://www.dynare.org/svn/dynare/trunk@3343 ac1d8469-bf42-47a9-8791-bf33cf982152
parent da8638cc
......@@ -55,11 +55,23 @@ if nargin>3
if ~isunix
error('The parallel version of SMM estimation is not implemented for non unix platforms!')
end
[junk,hostname] = unix('hostname --fqdn');
hostname = deblank(hostname);
master_is_running_a_job = 0;
for i=1:length(parallel)
if strcmpi(hostname,parallel(i).machine)
master_is_running_a_job = 0;
break
end
end
if ~master_is_running_a_job
disp(' ')
disp('Master has to run one job!')
disp(' ')
end
disp(' ')
disp('Master talks to its slaves...')
disp(' ')
[junk,hostname] = unix('hostname --fqdn');
hostname = deblank(hostname);
% Save the workspace.
save('master_variables.mat','options_','M_','oo_');
% Send the workspace to each remote computer.
......
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