Skip to content
Snippets Groups Projects
Commit 0182fed8 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

OAR/update: fix for undefined variable I introduced earlier


Signed-off-by: default avatarNicola Vigano <nicola.vigano@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@653 4c865b51-4357-4376-afb4-474e03ccb993
parent dd05096d
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,7 @@ if ~isempty(fieldnames(oarparameters))
arrays = logviewOar(arrayName, [], false);
% check if arrayid exists
if ~isempty(find(arrays.(arrayName).arrays == arrayid, 1))
arrayField = sprintf('array%d', arrayid);
% Do we want to delete?
if strcmpi(action, 'delete')
disp(['Deleting array n. ' num2str(arrayid) '...']);
......@@ -136,7 +137,6 @@ if ~isempty(fieldnames(oarparameters))
deleteOarArray(arrayid);
fprintf('Done.\nRemoving information about the jobs... ')
arrayField = sprintf('array%d', arrayid);
oarparameters.(arrayName) = rmfield(oarparameters.(arrayName), arrayField);
save('oarparameters.mat', 'oarparameters', '-v7.3');
fprintf('Done.\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment