Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
27415 Discussions

Valid standard-complaint logical input values in namelist

Kumbhare__Shashank
141 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
141 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
141 Views

Thank you so much 

Reply