Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

FORMAT statement question.

$
0
0

Please help me understand the difference between format statements 102 and 103 below.  I thought format statement 102 had an unnecessary extra set of parentheses, but not true.  The added parentheses significantly change the interpretation of the two format statements.  (Format 102 is printing in the format I desire.)  Please help me understand how the added parentheses in 102 are working to change the meaning of the format.

 

 write (intOutFile, 102) (i, dblNodeStaArray(i), dblSpanFraArray(i), dblNodeDepthArray(i), dblNodeTopRefArray(i), i = 1, intNumNodes)

102     format ((i6, 1x, 4(2x, f15.3)))

     1             0.000            1.000           93.000           10.000

     2            27.000            1.010           93.000           10.000

     3            54.000            1.020           93.000           10.000

     4            81.000            1.030           93.000           10.000

 

 write (intOutFile, 103) (i, dblNodeStaArray(i), dblSpanFraArray(i), dblNodeDepthArray(i), dblNodeTopRefArray(i), i = 1, intNumNodes)

103     format (i6, 1x, 4(2x, f15.3))

     1             0.000            1.000           93.000           10.000

            0.000           27.000            1.010           93.000

           10.000            0.000           54.000            1.020

           93.000           10.000            0.000           81.000

            1.030           93.000           10.000            0.000

 

 

  


Viewing all articles
Browse latest Browse all 5691

Trending Articles



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