{"action":"closed","issue":{"url":"https://api.github.com/repos/OPM/opm-simulators/issues/765","repository_url":"https://api.github.com/repos/OPM/opm-simulators","labels_url":"https://api.github.com/repos/OPM/opm-simulators/issues/765/labels{/name}","comments_url":"https://api.github.com/repos/OPM/opm-simulators/issues/765/comments","events_url":"https://api.github.com/repos/OPM/opm-simulators/issues/765/events","html_url":"https://github.com/OPM/opm-simulators/issues/765","id":166099404,"number":765,"title":"OutputWriter::writeInit cannot work correctly in parallel.","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":[{"url":"https://api.github.com/repos/OPM/opm-simulators/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-18T13:56:48Z","updated_at":"2016-09-07T09:29:20Z","closed_at":"2016-09-07T09:29:20Z","body":"`SimulatorBase::run` starts of by writing the init file with the output writer, see [here](https://github.com/OPM/opm-simulators/blob/b387061b816d444514f0fceb90652ed9157e9ee8/opm/autodiff/SimulatorBase_impl.hpp#L116). The eclipse writer in [BlackoilOutputWriter::writeInit](https://github.com/OPM/opm-simulators/blob/b387061b816d444514f0fceb90652ed9157e9ee8/opm/autodiff/SimulatorFullyImplicitBlackoilOutput.cpp#L253) assumes that both the NNC and the vector of properties returned by the [`simProps()`](https://github.com/OPM/opm-simulators/blob/b387061b816d444514f0fceb90652ed9157e9ee8/opm/autodiff/GeoProps.hpp#L242-L284) function contains correct information of the whole domain.  Unfortunately, as of now the vector with the properties will have the correct size (global size), but all  cells not represented on the current process will have transmissibility zero set for all global cells not represented, unconditionally. This is due to the `grid_` only representing the only local excerpt of the global grid. In addition each process will write to the same file which might cause additional problems.\r\nAssuming that this information is only written once at the very beginning of a simulation, the easiest fix would be to move the writing into FlowMain.hpp before the call to [`distributeData()`](https://github.com/OPM/opm-simulators/blob/b387061b816d444514f0fceb90652ed9157e9ee8/opm/autodiff/FlowMain.hpp#L148). Can anyone confirm this assumption?"}}
{"actor":{"display_login":"atgeirr"}}