Showing results for 
Search instead for 
Did you mean: 

Valid standard-complaint logical input values in namelist

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.

mylogical = T
mylogical = .T.
mylogical = true
mylogical = .true.


0 Kudos
2 Replies
Black Belt

All of those are standard

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.


Steve (aka "Doctor Fortran") -
0 Kudos

Thank you so much 

Thank you so much 

0 Kudos