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:
Sharan Roongta 2021-07-12 21:42:51 +02:00
parent 75f76a9221
commit d2560ebb39
1 changed files with 1 additions and 5 deletions

View File

@ -199,11 +199,7 @@ logical function isKeyValue(line)
isKeyValue = .false.
if( .not. isKey(line) .and. index(IO_rmComment(line),':') > 0 .and. .not. isFlow(line)) then
if(index(IO_rmComment(line),': ') > 0) then
isKeyValue = .true.
else
call IO_error(704,ext_msg=line)
endif
if(index(IO_rmComment(line),': ') > 0) isKeyValue = .true.
endif
end function isKeyValue