function should return either 'true' or 'false' and not bear the responsibility to throw errors
We were forcing every colon to indicate either key or key: value
This commit is contained in:
parent
75f76a9221
commit
d2560ebb39
|
@ -199,11 +199,7 @@ logical function isKeyValue(line)
|
||||||
isKeyValue = .false.
|
isKeyValue = .false.
|
||||||
|
|
||||||
if( .not. isKey(line) .and. index(IO_rmComment(line),':') > 0 .and. .not. isFlow(line)) then
|
if( .not. isKey(line) .and. index(IO_rmComment(line),':') > 0 .and. .not. isFlow(line)) then
|
||||||
if(index(IO_rmComment(line),': ') > 0) then
|
if(index(IO_rmComment(line),': ') > 0) isKeyValue = .true.
|
||||||
isKeyValue = .true.
|
|
||||||
else
|
|
||||||
call IO_error(704,ext_msg=line)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
end function isKeyValue
|
end function isKeyValue
|
||||||
|
|
Loading…
Reference in New Issue