{"action":"opened","issue":{"url":"https://api.github.com/repos/Unidata/netcdf-c/issues/183","labels_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/183/comments","events_url":"https://api.github.com/repos/Unidata/netcdf-c/issues/183/events","html_url":"https://github.com/Unidata/netcdf-c/issues/183","id":124827104,"number":183,"title":"NCVPTG illegal stride with version 4.3.3.1","user":{"login":"WardF","id":4324946,"avatar_url":"https://avatars.githubusercontent.com/u/4324946?v=3","gravatar_id":"","url":"https://api.github.com/users/WardF","html_url":"https://github.com/WardF","followers_url":"https://api.github.com/users/WardF/followers","following_url":"https://api.github.com/users/WardF/following{/other_user}","gists_url":"https://api.github.com/users/WardF/gists{/gist_id}","starred_url":"https://api.github.com/users/WardF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardF/subscriptions","organizations_url":"https://api.github.com/users/WardF/orgs","repos_url":"https://api.github.com/users/WardF/repos","events_url":"https://api.github.com/users/WardF/events{/privacy}","received_events_url":"https://api.github.com/users/WardF/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Unidata/netcdf-c/labels/arch/any","name":"arch/any","color":"d4c5f9"},{"url":"https://api.github.com/repos/Unidata/netcdf-c/labels/platform/any","name":"platform/any","color":"bfd4f2"},{"url":"https://api.github.com/repos/Unidata/netcdf-c/labels/status/under%20review","name":"status/under review","color":"bfdadc"},{"url":"https://api.github.com/repos/Unidata/netcdf-c/labels/type/bug","name":"type/bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"WardF","id":4324946,"avatar_url":"https://avatars.githubusercontent.com/u/4324946?v=3","gravatar_id":"","url":"https://api.github.com/users/WardF","html_url":"https://github.com/WardF","followers_url":"https://api.github.com/users/WardF/followers","following_url":"https://api.github.com/users/WardF/following{/other_user}","gists_url":"https://api.github.com/users/WardF/gists{/gist_id}","starred_url":"https://api.github.com/users/WardF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardF/subscriptions","organizations_url":"https://api.github.com/users/WardF/orgs","repos_url":"https://api.github.com/users/WardF/repos","events_url":"https://api.github.com/users/WardF/events{/privacy}","received_events_url":"https://api.github.com/users/WardF/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Unidata/netcdf-c/milestones/5","html_url":"https://github.com/Unidata/netcdf-c/milestones/future","labels_url":"https://api.github.com/repos/Unidata/netcdf-c/milestones/5/labels","id":1340831,"number":5,"title":"future","description":null,"creator":{"login":"WardF","id":4324946,"avatar_url":"https://avatars.githubusercontent.com/u/4324946?v=3","gravatar_id":"","url":"https://api.github.com/users/WardF","html_url":"https://github.com/WardF","followers_url":"https://api.github.com/users/WardF/followers","following_url":"https://api.github.com/users/WardF/following{/other_user}","gists_url":"https://api.github.com/users/WardF/gists{/gist_id}","starred_url":"https://api.github.com/users/WardF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WardF/subscriptions","organizations_url":"https://api.github.com/users/WardF/orgs","repos_url":"https://api.github.com/users/WardF/repos","events_url":"https://api.github.com/users/WardF/events{/privacy}","received_events_url":"https://api.github.com/users/WardF/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-10-06T17:22:53Z","updated_at":"2016-01-04T19:57:20Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-01-04T19:57:19Z","updated_at":"2016-01-04T19:57:19Z","closed_at":null,"body":"Originally reported by Dr. Jeremy Lore.  Note that the example program supplied (attached here for reference) is a Fortran program and not a C program.  It could be the case that this is a Fortran issue and not a C issue, but the first step will be identifying where the problem resides.\r\n\r\n## Sample Program\r\n\r\n* [ncvptg_test.f.zip](https://github.com/Unidata/netcdf-c/files/77616/ncvptg_test.f.zip)\r\n\r\n## Original Bug Report\r\n\r\n> I am seeing some strange behavior with netcdf version 4.3.3.1. A call to NCVPTG with a stride of 1 produces an \"Illegal stride\" error. The identical call works fine with version 4.1.1 (these are the two versions I have immediately available.)\r\n\r\n> Further, adding 1 to the stride in the 4.3.3.1 version produces the correct behavior. That is, in version 4.3.3.1 a stride of 2 is used to set every value in the array dimension, a stride of 3 sets every other value, etc.\r\n\r\n> I've attached a test program that reproduces this behavior. There is a logical flag in the source (ADD_ONE_TO_STRIDE) that if set to .FALSE. produces the correct behavior for 4.1.1. but the incorrect behavior for 4.3.3.1. Similarly, ADD_ONE_TO_STRIDE == .TRUE. will work for 4.3.3.1 but not 4.1.1.\r\n"}}