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
Johannes Pfeifer
dynare
Commits
d85fc064
Commit
d85fc064
authored
May 31, 2010
by
Marco Ratto
Browse files
Bug fix.
Header improvement.
parent
40d38909
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/fParallel.m
View file @
d85fc064
function
fParallel
(
fblck
,
nblck
,
whoiam
,
ThisMatlab
,
fname
)
% In a parallelization context, this function is launched on slave
% PARALLEL CONTEXT
% In a parallel context, this function is launched on slave
% machines, and acts as a wrapper around the function containing the
% computing task itself.
%
% INPUTS
% fblck [int] index number of the first thread to run in this
%
o
fblck [int] index number of the first thread to run in this
% MATLAB instance
% nblck [int] number of threads to run in this
%
o
nblck [int] number of threads to run in this
% MATLAB instance
% whoiam [int] index number of this CPU among all CPUs in the
%
o
whoiam [int] index number of this CPU among all CPUs in the
% cluster
% ThisMatlab [int] index number of this slave machine in the cluster
%
o
ThisMatlab [int] index number of this slave machine in the cluster
% (entry in options_.parallel)
% fname [string] function to be run, containing the computing task
% Copyright (C) 2009 Dynare Team
% o fname [string] function to be run, containing the computing task
%
% OUTPUTS
% None
%
% Copyright (C) 2006-2008,2010 Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -49,7 +53,7 @@ dynareroot = dynare_config();
% Load input data
load
(
[
fname
,
'_input'
])
if
exist
(
'fGlobalVar'
)
,
if
exist
(
'fGlobalVar'
)
&&
~
isempty
(
fGlobalVar
)
globalVars
=
fieldnames
(
fGlobalVar
);
for
j
=
1
:
length
(
globalVars
),
eval
([
'global '
,
globalVars
{
j
},
';'
])
...
...
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