Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26755 Discussions

Valid standard-complaint logical input values in namelist

Kumbhare__Shashank
94 Views

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.
/

 

0 Kudos
2 Replies
Steve_Lionel
Black Belt Retired Employee
94 Views

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.

 

Kumbhare__Shashank
94 Views

Thank you so much 

Reply