ISO_FORTRAN_ENV or -fdefault-real-8 to promote reals to double precision

前端 未结 1 908
你的背包
你的背包 2020-12-20 00:33

I\'ve always been using the -fdefault-real-8 option of gfortran to automatically promote every single REAL declared anywhere in the pr

相关标签:
1条回答
  • 2020-12-20 01:38

    If you just want to silence the warning and you do not care about the implications -fdefault-real-8 has on storage association and some Fortran standard requirements, just do not import NUMERIC_STORAGE_SIZE from the module. For example,

    USE, INTRINSIC :: ISO_FORTRAN_ENV, only: INPUT_UNIT,OUTPUT_UNIT,ERROR_UNIT
    
    0 讨论(0)
提交回复
热议问题