<div class="gmail_quote">On Thu, Apr 19, 2012 at 11:22, Alexander Grayver <span dir="ltr"><<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jed, <br><br>Thanks.<br>One more thing, the function doesn't close file properly. I guess one should use fclose for that.<br></blockquote><div><br></div><div>This should be calling @PetscOpenFile/close.m</div><div><br>
</div><div><div>if ischar(inarg) || isinteger(inarg)</div><div> close(fd)</div><div>end</div></div><div><br></div><div><br></div><div>Is your path arranged so that it's calling something else?</div></div>