Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-26 Thread Thomas Koenig via Fortran
On 25.02.22 21:53, Bertini, Denis Dr. via Fortran wrote: It seems that the value set in the foreseen environment variable is just ignored. And always a buffer size of 8kiB is used, which is the default values for formatted I/O harcoded in libgfortran. The only way to change this value is editing

Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-26 Thread Bertini, Denis Dr. via Fortran
Hi Thomas, OK so i took your example ( exact copy) and compile it with gfortran 11.2. Then without setting the environment variable: export GFORTRAN_UNFORMATTED_BUFFER_SIZE=20 i got dbertini@lxbk0596:/lustre/rz/dbertini/fio > strace -e write ./fio write(3, "\220\1\0\0\1\0\0\0\2\0\0\0\3\0\0