Commit c2145876 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Parallel system: add new option DynarePath to specify Dynare path on the slaves

parent c8cb8e3a
......@@ -46,13 +46,15 @@ delete( [fname,'_',int2str(whoiam),'.log']);
diary( [fname,'_',int2str(whoiam),'.log']);
% Load input data
load( [fname,'_input'])
% configure dynare environment
if ~empty(Parallel(ThisMatlab).DynarePath)
addpath(Parallel(ThisMatlab).DynarePath)
end
dynareroot = dynare_config();
% Load input data
load( [fname,'_input'])
if exist('fGlobalVar') && ~isempty (fGlobalVar)
globalVars = fieldnames(fGlobalVar);
for j=1:length(globalVars),
......
......@@ -41,14 +41,15 @@ delete( ['slaveParallel_',int2str(whoiam),'.log']);
diary( ['slaveParallel_',int2str(whoiam),'.log']);
% Load input data.
load( ['slaveParallel_input',int2str(whoiam)])
% configure dynare environment
if ~empty(Parallel(ThisMatlab).DynarePath)
addpath(Parallel(ThisMatlab).DynarePath)
end
dynareroot = dynare_config();
% Load input data.
load( ['slaveParallel_input',int2str(whoiam)])
% keyboard;
%Loads fGlobalVar Parallel.
if exist('fGlobalVar'),
globalVars = fieldnames(fGlobalVar);
......
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