Hi,
I am a newbie to Fortran language. I try to write a real8 array into binary file using code as follow (compiler: Intel Fortran 2015)
open(unit=219, status='replace',file='data.bin',form='unformatted') do j=1,ny2dval do i=1,nx2dval write(219) fzavg(i,j) end do end do
But the file size is twice bigger than expected. It seems to write a real16 array. Why does it happen? Any suggestions?
Thanks a lot!
Regards
ZHAO Peng