Checkpoint writerが生成するlogical tokenと標準的な長形式だけを許可する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | token |
pure logical function is_logical_token(token) result(valid) character(len=*), intent(in) :: token character(len=len(token)) :: normalized normalized = lower_ascii(trim(token)) valid = trim(normalized) == 't' .or. trim(normalized) == 'f' .or. & trim(normalized) == '.true.' .or. trim(normalized) == '.false.' end function is_logical_token