- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
WRITE (IFIL,*) XOUT, (PLTVAL(J,I),J=1,IPTS)
XOUT and PLTVAL are either double or single precision values.
In one instance, I get a line that looks like this:
0.000000000000000E+000 128930.930924782 354.774066602473 330.477857203495 9275.40669654240 2453231.04053296 -3.88026220562964
In another instance (different project), I get a bunch of lines that look like this:
0.000000000000000E+000 64805.3993318746 0.000000000000000E+000
0.000000000000000E+000 11541.8275238493 1721980668.39294
575.247120749910 6.55100000000000 0.000000000000000E+000
0.000000000000000E+000 15572516.7609353 300.000000000000
So, which one is correct, and why the difference?
In single precision I get output that looks like this:
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00 0.0000000E+00
Seems consistent with the second example in double-precision
Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the format matters to you, use an explicit format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
REAL*4
CHARACTER*8 STR(*)
call sub(a,b,c,*2,*3) (alternate return)
In none of these cases does the asterisk have the same meaning as in regular expressions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can also use it as any ordinary character for line continuation in the sixth column.
And there are many more uses.
Regards,
Arjen

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page