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

Small fix

parent 6ca3f4b0
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ disp(min(dmvol(:)))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Cleaning grain struct
if (isfield(grain, 'id'))
if (~isfield(grain, 'id') || isempty(grain.id))
grain.id = 1;
end
grain = struct('id', grain.id, 'phaseid', grain.phaseid, ...
......
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