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

gtFsimCheckMissingGrains : fix bug


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

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@454 4c865b51-4357-4376-afb4-474e03ccb993
parent a97ea804
No related branches found
No related tags found
No related merge requests found
......@@ -16,12 +16,11 @@ function missing = gtFsimCheckMissingGrains(phase_num)
% get number of jobs for that functions from OAR
arrays=logviewOar('gtForwardSimulate_v2',[],false);
if ~isempty(arrays)
if ~isempty(arrays.('gtForwardSimulate_v2').logs)
filename = arrays.('gtForwardSimulate_v2').logs;
[~,njobs] = unix(['grep "njobs" ' filename ' | awk -F" = " ''{print $2}''']);
nof_jobs = str2double(njobs);
else
arrayid=[];
nof_jobs = 1;
end
......@@ -44,7 +43,7 @@ for i=1:nof_grains
end
% grains per each job
grains = round(nof_grains/nof_jobs);
grains = ceil(nof_grains/nof_jobs);
% fill with NaN to have exact division of nof_grains by nof_jobs
tot_n = nof_jobs * grains;
......
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