Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

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.

&mynamelist
mylogical = T
mylogical = .T.
mylogical = true
mylogical = .true.
/

 

0 Kudos
2 Replies
Highlighted
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") - https://stevelionel.com/drfortran
0 Kudos
Highlighted

Thank you so much 

Thank you so much 

0 Kudos