Format a logical as namelist .true./.false..
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | v |
pure function fmt_logical(v) result(str) !! Format a logical as namelist `.true.`/`.false.`. logical, intent(in) :: v character(len=:), allocatable :: str if (v) then str = ".true." else str = ".false." end if end function fmt_logical