Commit 9f608319 authored by Pierre Cazenave's avatar Pierre Cazenave

Remove duplicate node strings IDs in case we have any.

parent 7a7faa34
......@@ -249,7 +249,8 @@ for r = 1:size(mNSlines,1) %rows
%Append positive value to the NS, do end-of-NS stuff, then ignore
%rest of line.
currentNS = [currentNS abs(mNSlines(r,c))];
read_obc_nodes{currentNSno} = currentNS;
% Remove duplicate nodestring IDs in case we have them.
read_obc_nodes{currentNSno} = unique(currentNS, 'stable');
NSlengths = [NSlengths length(currentNS)];
currentNSno = currentNSno + 1;
currentNS = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment