{"action":"created","issue":{"url":"https://api.github.com/repos/idaholab/moose/issues/6031","labels_url":"https://api.github.com/repos/idaholab/moose/issues/6031/labels{/name}","comments_url":"https://api.github.com/repos/idaholab/moose/issues/6031/comments","events_url":"https://api.github.com/repos/idaholab/moose/issues/6031/events","html_url":"https://github.com/idaholab/moose/issues/6031","id":120852078,"number":6031,"title":"MooseMesh::nodeToElemMap() indexes all elements, including ancestors","user":{"login":"dschwen","id":202302,"avatar_url":"https://avatars.githubusercontent.com/u/202302?v=3","gravatar_id":"","url":"https://api.github.com/users/dschwen","html_url":"https://github.com/dschwen","followers_url":"https://api.github.com/users/dschwen/followers","following_url":"https://api.github.com/users/dschwen/following{/other_user}","gists_url":"https://api.github.com/users/dschwen/gists{/gist_id}","starred_url":"https://api.github.com/users/dschwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschwen/subscriptions","organizations_url":"https://api.github.com/users/dschwen/orgs","repos_url":"https://api.github.com/users/dschwen/repos","events_url":"https://api.github.com/users/dschwen/events{/privacy}","received_events_url":"https://api.github.com/users/dschwen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-12-07T19:46:49Z","updated_at":"2015-12-08T23:01:43Z","closed_at":null,"body":"`MooseMesh::nodeToElemMap()` builds a map that points from nodes to adjacent elements. It its current state it includes ancestor elements (i.e. elements that are parents holding refined elements). Is this desired behavior @friedmud ? This is tripping me up quite a bit in EBSD Reader.\r\n\r\nif the lines \r\n```\r\n      MeshBase::const_element_iterator       el  = getMesh().elements_begin();\r\n      const MeshBase::const_element_iterator end = getMesh().elements_end();\r\n```\r\n\r\nwere changed to\r\n```\r\n      MeshBase::const_element_iterator       el  = getMesh().not_ancestor_elements_begin();\r\n      const MeshBase::const_element_iterator end = getMesh().not_ancestor_elements_end();\r\n```\r\n\r\nwe'd get a map that only holds _real_ elements. I wonder if there is a usecase for having ancestor elements. \r\n\r\nI know that I can filter these elements out  by myself, but it makes my algorithm a lot less elegant (because I'll have to iterate over the element list twice to get the number of non-ancestor elements first).\r\n\r\nFYI @frombs"},"comment":{"url":"https://api.github.com/repos/idaholab/moose/issues/comments/163048961","html_url":"https://github.com/idaholab/moose/issues/6031#issuecomment-163048961","issue_url":"https://api.github.com/repos/idaholab/moose/issues/6031","id":163048961,"user":{"login":"friedmud","id":870705,"avatar_url":"https://avatars.githubusercontent.com/u/870705?v=3","gravatar_id":"","url":"https://api.github.com/users/friedmud","html_url":"https://github.com/friedmud","followers_url":"https://api.github.com/users/friedmud/followers","following_url":"https://api.github.com/users/friedmud/following{/other_user}","gists_url":"https://api.github.com/users/friedmud/gists{/gist_id}","starred_url":"https://api.github.com/users/friedmud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedmud/subscriptions","organizations_url":"https://api.github.com/users/friedmud/orgs","repos_url":"https://api.github.com/users/friedmud/repos","events_url":"https://api.github.com/users/friedmud/events{/privacy}","received_events_url":"https://api.github.com/users/friedmud/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T23:01:43Z","updated_at":"2015-12-08T23:01:43Z","body":"Or you could, you know, use this: https://github.com/idaholab/moose/blob/devel/framework/include/mesh/MooseMesh.h#L769"}}