Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

The file size is twice bigger when writing real8 into binary file.

$
0
0

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


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>