'Write; statement without a lot of spaces

前端 未结 2 564
春和景丽
春和景丽 2021-01-22 14:31

The write function does print the parameters with a lot of spaces between columms, this is giving me a very huge file in the end. so How do I trim the output, to li

2条回答
  •  再見小時候
    2021-01-22 14:58

    This is just an explanatory comment in addition to what High Performance Mark has written. If you do not provide an explicit format specifier in the WRITE statement, the so-called list directed output is being used. Each Fortran processor (the Fortran word for compiler) is free to choose an output format that will guarantee that every element in the list will be printed in its entirety. This often leads to very wide (and compiler dependent) fields being used.

提交回复
热议问题