Skip to content
Snippets Groups Projects
Commit abcb1038 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

Fsim check output : fix bug


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@637 4c865b51-4357-4376-afb4-474e03ccb993
parent 5483a043
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,12 @@ function missing = gtFsimCheckMissingGrains(phase_num)
% get number of jobs for that functions from OAR
arrays=logviewOar('gtForwardSimulate_v2',[],false);
if ~isempty(arrays.fname)
if ~isempty(arrays.('gtForwardSimulate_v2').logs)
filename = arrays.('gtForwardSimulate_v2').logs;
[~,njobs] = unix(['grep "njobs" ' filename ' | awk -F" = " ''{print $2}''']);
nof_jobs = str2double(njobs);
end
else
nof_jobs = 1;
end
......@@ -32,10 +34,11 @@ datemax=max(datenum(o2{4}(:)));
count=[];
list_grains=dir(fullfile( '4_grains',['phase_' sprintf('%02d',phase_num)],'grain_*.mat'));
for i=1:length(list_grains)
num = str2double(list_grains(i).name(7:10));
if datenum(list_grains(i).date,'dd-mmm-yyyy')>=datemax
count(i) = true;
count(num) = true;
else
count(i) = false;
count(num) = false;
end
end
......
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