- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What are the valid logical input values in a namelist according to fortran standard?
I have tried the following values and they worked for intel, but I am not sure which one is strictly standard-complaint.
&mynamelist mylogical = T mylogical = .T. mylogical = true mylogical = .true. /
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All of those are standard-compliant.
When the next effective item is of type logical, the input form of the input value shall not include equals or value separators among the optional characters permitted for L editing (13.7.3).
...
The standard form of the input field consists of optional blanks, optionally followed by a period, followed by a T for true or F for false. The T or F may be followed by additional characters in the field, which are ignored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much

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