/usr/lib/petscdir/3.7.7/x86_64-linux-gnu-complex-debug/share/petsc/matlab/@PetscOpenSocket/read.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 14 15 16 17 18 19 20 21 | function d = read(sreader,count,datatype)
%
% O = read(sreader,count,datatype) - reads data from a socket opened with sreader(socketnumber)
%
switch (datatype)
case 'int32'
datatype = 0;
case 'double'
datatype = 1;
case 'float64'
datatype = 1;
case 'uchar'
datatype = 6;
otherwise
disp(['Unknow datatype ' datatype])
return
end
d = sread(sreader.fd,count,datatype);
if datatype == 6
d = d';
end
|