Commit 4797ad83 authored by Rory O'Hara Murray's avatar Rory O'Hara Murray

force write_FVCOM_grid.m to write double precision data (rather than...

force write_FVCOM_grid.m to write double precision data (rather than ocnverting to integer in some cases for some reason)
parent 47966be2
......@@ -67,7 +67,7 @@ assert(fid > 0, 'Error opening output file %s', filename)
fprintf(fid, 'Node Number = %d\n', Mobj.nVerts);
fprintf(fid, 'Cell Number = %d\n', Mobj.nElems);
fprintf(fid, '%d %d %d %d %d\n', [(1:Mobj.nElems)', Mobj.tri, (1:Mobj.nElems)']');
fprintf(fid, '%d %f %f %f\n', [(1:Mobj.nVerts)', x, y, Mobj.h]');
fprintf(fid, '%d %f %f %f\n', [double(1:Mobj.nVerts)', double(x), double(y), double(Mobj.h)]');
fclose(fid);
if ftbverbose
......
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