{"action":"created","issue":{"url":"https://api.github.com/repos/marshallward/f90nml/issues/87","repository_url":"https://api.github.com/repos/marshallward/f90nml","labels_url":"https://api.github.com/repos/marshallward/f90nml/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/marshallward/f90nml/issues/87/comments","events_url":"https://api.github.com/repos/marshallward/f90nml/issues/87/events","html_url":"https://github.com/marshallward/f90nml/issues/87","id":373883856,"node_id":"MDU6SXNzdWUzNzM4ODM4NTY=","number":87,"title":"Separate vector element controls are collapsed into array index, which changes results","user":{"login":"warrickball","id":20858744,"node_id":"MDQ6VXNlcjIwODU4NzQ0","avatar_url":"https://avatars1.githubusercontent.com/u/20858744?v=4","gravatar_id":"","url":"https://api.github.com/users/warrickball","html_url":"https://github.com/warrickball","followers_url":"https://api.github.com/users/warrickball/followers","following_url":"https://api.github.com/users/warrickball/following{/other_user}","gists_url":"https://api.github.com/users/warrickball/gists{/gist_id}","starred_url":"https://api.github.com/users/warrickball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrickball/subscriptions","organizations_url":"https://api.github.com/users/warrickball/orgs","repos_url":"https://api.github.com/users/warrickball/repos","events_url":"https://api.github.com/users/warrickball/events{/privacy}","received_events_url":"https://api.github.com/users/warrickball/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-25T10:41:19Z","updated_at":"2018-10-25T10:47:16Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Here's a small example program that reads some numbers from a namelist:\r\n\r\n    program vector\r\n\r\n      integer :: x(5), iounit, ierr\r\n\r\n      namelist /controls/ x\r\n\r\n      x = 0\r\n\r\n      open(newunit=iounit, file='controls.in', status='old', iostat=ierr)\r\n      read(iounit, nml=controls)\r\n      close(iounit)\r\n\r\n      write(*,*) x\r\n\r\n    end program vector\r\n\r\nHere's the namelist:\r\n\r\n    &controls\r\n        x(3) = 1\r\n        x(4) = 1\r\n        x(5) = 1\r\n    /\r\n\r\nIf I compile `vector.f90` and run it, I get the expected output\r\n\r\n               0           0           1           1           1\r\n\r\nHowever, if I run `f90nml` on `controls.in`, it collapses the namelist input to\r\n\r\n    &controls\r\n        x(3:5) = 1, 1, 1\r\n    /\r\n\r\nwhich runs but doesn't give the expected results.  If I change `controls.in` to the `f90nml` output, I instead get\r\n\r\n               0           0           1           0           0\r\n\r\nI'm familiar with this issue from development work, which tripped up a few users.\r\n\r\nI'm willing to take a stab at fixing this if we agree on the desired behaviour.  I think that `f90nml` should leave entries like this unchanged.\r\n"},"comment":{"url":"https://api.github.com/repos/marshallward/f90nml/issues/comments/433004170","html_url":"https://github.com/marshallward/f90nml/issues/87#issuecomment-433004170","issue_url":"https://api.github.com/repos/marshallward/f90nml/issues/87","id":433004170,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzAwNDE3MA==","user":{"login":"marshallward","id":462315,"node_id":"MDQ6VXNlcjQ2MjMxNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/462315?v=4","gravatar_id":"","url":"https://api.github.com/users/marshallward","html_url":"https://github.com/marshallward","followers_url":"https://api.github.com/users/marshallward/followers","following_url":"https://api.github.com/users/marshallward/following{/other_user}","gists_url":"https://api.github.com/users/marshallward/gists{/gist_id}","starred_url":"https://api.github.com/users/marshallward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshallward/subscriptions","organizations_url":"https://api.github.com/users/marshallward/orgs","repos_url":"https://api.github.com/users/marshallward/repos","events_url":"https://api.github.com/users/marshallward/events{/privacy}","received_events_url":"https://api.github.com/users/marshallward/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T10:47:16Z","updated_at":"2018-10-25T10:47:16Z","author_association":"OWNER","body":"I agree more control would be very useful, and has been suggested in other fonts, but the condensed namelist ought to be valid, and I get the expected result when I use gfortran.\r\n\r\nWhat compiler are you using?  This seems more like a compiler bug to me."}}
{"actor":{"display_login":"marshallward"}}