/usr/lib/petscdir/3.7.7/x86_64-linux-gnu-complex-debug/share/petsc/matlab/@PetscOpenFile/PetscOpenFile.m is in libpetsc-complex-3.7.7-dbg 3.7.7+dfsg1-2build5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | function O = PetscOpenFile(filename,rw)
%
% O = PetscOpenFile(filename,rw) - opens the binary file (generated by PETSc for reading) or for writing
%
% This provides an object oriented interface to the Matlab routines fopen(), fread() and fclose()
% allowing PETSc Matlab utilities like PetscBinaryRead.m to work cleanly with either binary
% files or sockets
%
if nargin == 1
rw = 'r';
end
S = struct('fd', fopen(filename,rw,'ieee-be'));
O = class(S,'PetscOpenFile');
|