Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dóra Kocsis
dynare
Commits
0a38f8ac
Commit
0a38f8ac
authored
14 years ago
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
Initialize here default of MatlabOctavePath;
implies using global options_ in place of local argument
parent
3f57a6ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/parallel/InitializeComputationalEnviroment.m
+22
-2
22 additions, 2 deletions
matlab/parallel/InitializeComputationalEnviroment.m
with
22 additions
and
2 deletions
matlab/parallel/InitializeComputationalEnviroment.m
+
22
−
2
View file @
0a38f8ac
function
InitializeComputationalEnviroment
(
DataInput
)
function
InitializeComputationalEnviroment
()
% PARALLEL CONTEXT
% In a parallel context, this function is used to Initialize the computational enviroment according with
...
...
@@ -28,6 +28,26 @@ function InitializeComputationalEnviroment(DataInput)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% This is simple and check!
% The default value for the new field MatlabOctavePath now is 'matlab' or
% 'octave'. Then if the field is empty it is necessary to fill it with the
% default value.
global
options_
for
j
=
1
:
length
(
options_
.
parallel
),
if
isempty
(
options_
.
parallel
(
j
)
.
MatlabOctavePath
),
if
exist
(
'OCTAVE_VERSION'
)
options_
.
parallel
(
j
)
.
MatlabOctavePath
=
'octave'
;
else
options_
.
parallel
(
j
)
.
MatlabOctavePath
=
'matlab'
;
end
end
end
% Invoke masterParallel with 8 arguments and the last equal to 1. With this shape
% for input data, masterParallel only create a new directory for remote
% computation. The name of this directory is time depending. For local
...
...
@@ -35,6 +55,6 @@ function InitializeComputationalEnviroment(DataInput)
% previous computations.
delete
([
'P_slave_*End.txt'
])
masterParallel
(
DataInput
.
parallel
,[],[],[],[],[],[],
DataInput
.
parallel_info
,
1
);
masterParallel
(
options_
.
parallel
,[],[],[],[],[],[],
options_
.
parallel_info
,
1
);
return
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment