{"action":"created","issue":{"url":"https://api.github.com/repos/OPM/opm-autodiff/issues/557","labels_url":"https://api.github.com/repos/OPM/opm-autodiff/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/OPM/opm-autodiff/issues/557/comments","events_url":"https://api.github.com/repos/OPM/opm-autodiff/issues/557/events","html_url":"https://github.com/OPM/opm-autodiff/pull/557","id":121250184,"number":557,"title":"Guard access of well variable with asImpl().localWellsActive()","user":{"login":"blattms","id":1944640,"avatar_url":"https://avatars.githubusercontent.com/u/1944640?v=3","gravatar_id":"","url":"https://api.github.com/users/blattms","html_url":"https://github.com/blattms","followers_url":"https://api.github.com/users/blattms/followers","following_url":"https://api.github.com/users/blattms/following{/other_user}","gists_url":"https://api.github.com/users/blattms/gists{/gist_id}","starred_url":"https://api.github.com/users/blattms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blattms/subscriptions","organizations_url":"https://api.github.com/users/blattms/orgs","repos_url":"https://api.github.com/users/blattms/repos","events_url":"https://api.github.com/users/blattms/events{/privacy}","received_events_url":"https://api.github.com/users/blattms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T14:20:53Z","updated_at":"2015-12-11T08:40:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OPM/opm-autodiff/pulls/557","html_url":"https://github.com/OPM/opm-autodiff/pull/557","diff_url":"https://github.com/OPM/opm-autodiff/pull/557.diff","patch_url":"https://github.com/OPM/opm-autodiff/pull/557.patch"},"body":"Since PR #541 the arrays cq_s, mob_perfcells, and b_perfcells are\r\nempty if there are no wells in the domain of the process. This\r\ncaused segementation faults at various places where we compute\r\non the wells. With this commit we now guard this places using\r\nasImpl().localWellsActive() and only using the array if the call\r\nreturns true.\r\n\r\nThis PR closes #556 "},"comment":{"url":"https://api.github.com/repos/OPM/opm-autodiff/issues/comments/163875810","html_url":"https://github.com/OPM/opm-autodiff/pull/557#issuecomment-163875810","issue_url":"https://api.github.com/repos/OPM/opm-autodiff/issues/557","id":163875810,"user":{"login":"atgeirr","id":1876621,"avatar_url":"https://avatars.githubusercontent.com/u/1876621?v=3","gravatar_id":"","url":"https://api.github.com/users/atgeirr","html_url":"https://github.com/atgeirr","followers_url":"https://api.github.com/users/atgeirr/followers","following_url":"https://api.github.com/users/atgeirr/following{/other_user}","gists_url":"https://api.github.com/users/atgeirr/gists{/gist_id}","starred_url":"https://api.github.com/users/atgeirr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atgeirr/subscriptions","organizations_url":"https://api.github.com/users/atgeirr/orgs","repos_url":"https://api.github.com/users/atgeirr/repos","events_url":"https://api.github.com/users/atgeirr/events{/privacy}","received_events_url":"https://api.github.com/users/atgeirr/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T08:40:45Z","updated_at":"2015-12-11T08:40:45Z","body":"Thanks for the fix, will merge."}}