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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
ae5e9904
Commit
ae5e9904
authored
12 years ago
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
Allow for exceptions in deleting new files created remotely
(cherry picked from commit
2133ae43
)
parent
990f3c3b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!345
4.3: cherry-picked Parallel debug and several fixes of GSA toolbox
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/parallel/dynareParallelDeleteNewFiles.m
+7
-1
7 additions, 1 deletion
matlab/parallel/dynareParallelDeleteNewFiles.m
with
7 additions
and
1 deletion
matlab/parallel/dynareParallelDeleteNewFiles.m
+
7
−
1
View file @
ae5e9904
function
dynareParallelDeleteNewFiles
(
PRCDir
,
Parallel
,
PRCDirSnapshot
)
function
dynareParallelDeleteNewFiles
(
PRCDir
,
Parallel
,
PRCDirSnapshot
,
varargin
)
% PARALLEL CONTEXT
% In a parallel context, this is a specialized function able to ...
%
...
...
@@ -55,11 +55,17 @@ for indPC=1:length(Parallel),
sT
(
1
)
=
'.'
;
SlashNumberAndPosition
=
findstr
(
sT
,
fS
);
fileaddress
=
{
sT
(
1
:
SlashNumberAndPosition
(
end
)),
sT
(
SlashNumberAndPosition
(
end
)
+
1
:
end
)};
exception_flag
=
0
;
for
indexc
=
1
:
length
(
varargin
)
exception_flag
=
exception_flag
+
(
~
isempty
(
strfind
(
fileaddress
{
2
},
varargin
{
indexc
})));
end
if
exception_flag
==
0
,
dynareParallelDelete
(
fileaddress
{
2
},[
PRCDir
,
fS
,
fileaddress
{
1
}],
Parallel
(
indPC
));
disp
(
'New file deleted in remote -->'
);
disp
(
fileaddress
{
2
});
disp
(
'<--'
);
end
end
else
...
...
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