Commit 005795a3 authored by Pierre Cazenave's avatar Pierre Cazenave

Think this is a better way of checking the connectivity values we are reading in are sensible

parent 7d226bbd
......@@ -170,7 +170,7 @@ for i=1:nHeader
if i==1
C = textscan(fid,'%s',1);
C = textscan(fid,'%s %s',2);
C = textscan(fid,'%s',2);
clear C
......@@ -178,7 +178,7 @@ clear C
for i=1:nElems
C = textscan(fid, '%s %d %d %d %d %d', 1);
% Check we have valid data.
if C{3}>0 % can't have a zero value connectivity point
if strcmp(C{1},'E3T')
tri(validObs,1) = C{3};
tri(validObs,2) = C{4};
tri(validObs,3) = C{5};
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