<div class="gmail_quote">On Thu, Apr 19, 2012 at 11:22, Alexander Grayver <span dir="ltr">&lt;<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>&gt;</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&#39;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&#39;s calling something else?</div></div>