Commit 800e5282 authored by Lore, Jeremy's avatar Lore, Jeremy
Browse files

Update readg_g3d_simple.m

Fix bug for read of non-standard grids with unequal resolutions
parent 05661d4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ if length(line) < 60
    % Try getting two integers from the end
    twoIntsRev = sscanf(fliplr(strtrim(line)),'%d %d',2);
    g.mh = str2double(fliplr(num2str(twoIntsRev(1))));
    g.mw = str2double(fliplr(num2str(twoIntsRev(1))));
    g.mw = str2double(fliplr(num2str(twoIntsRev(2))));
else
    % Try formatted read
    g.ecase = sscanf(line(1:8),'%8s');