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
Dóra Kocsis
dynare
Commits
b82bc058
Commit
b82bc058
authored
Mar 27, 2013
by
Marco Ratto
Browse files
1) Fix for octave compatibility;
2) cleanup slavejob files
parent
2133ae43
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/parallel/closeSlave.m
View file @
b82bc058
...
...
@@ -39,7 +39,7 @@ end
s
=
warning
(
'off'
);
if
partial
==
1
save
(
'slaveParallel_break'
,
'partial'
)
save
(
'slaveParallel_break
.mat
'
,
'partial'
)
for
indPC
=
1
:
length
(
Parallel
),
if
(
Parallel
(
indPC
)
.
Local
==
0
),
dynareParallelSendFiles
(
'slaveParallel_break.mat'
,
TmpFolder
,
Parallel
(
indPC
));
...
...
@@ -63,12 +63,14 @@ for indPC=1:length(Parallel),
if
(
Parallel
(
indPC
)
.
Local
==
0
),
dynareParallelDelete
(
'slaveParallel_input*.mat'
,
TmpFolder
,
Parallel
(
indPC
));
end
%else
delete
(
'slaveParallel_input*.mat'
);
delete
(
'slaveJob*.mat'
);
pause
(
1
)
delete
([
'slaveParallel_*.log'
]);
%end
delete
ConcurrentCommand1
.
bat
;
end
while
(
1
)
...
...
@@ -76,7 +78,6 @@ while(1)
for
indPC
=
1
:
length
(
Parallel
),
if
(
Parallel
(
indPC
)
.
Local
==
0
),
dynareParallelRmDir
(
TmpFolder
,
Parallel
(
indPC
)),
end
end
break
...
...
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