[petsc-users] PetscBinaryRead in matlab

Jed Brown jedbrown at mcs.anl.gov
Thu Apr 19 13:27:40 CDT 2012


On Thu, Apr 19, 2012 at 11:22, Alexander Grayver <agrayver at gfz-potsdam.de>wrote:

> Jed,
>
> Thanks.
> One more thing, the function doesn't close file properly. I guess one
> should use fclose for that.
>

This should be calling @PetscOpenFile/close.m

if ischar(inarg) || isinteger(inarg)
    close(fd)
end


Is your path arranged so that it's calling something else?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120419/c9592525/attachment.htm>


More information about the petsc-users mailing list