{"action":"created","issue":{"url":"https://api.github.com/repos/SCOREC/core/issues/15","labels_url":"https://api.github.com/repos/SCOREC/core/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/SCOREC/core/issues/15/comments","events_url":"https://api.github.com/repos/SCOREC/core/issues/15/events","html_url":"https://github.com/SCOREC/core/issues/15","id":103081274,"number":15,"title":"How to set field values over mesh element?","user":{"login":"YetAnotherMinion","id":8005290,"avatar_url":"https://avatars.githubusercontent.com/u/8005290?v=3","gravatar_id":"","url":"https://api.github.com/users/YetAnotherMinion","html_url":"https://github.com/YetAnotherMinion","followers_url":"https://api.github.com/users/YetAnotherMinion/followers","following_url":"https://api.github.com/users/YetAnotherMinion/following{/other_user}","gists_url":"https://api.github.com/users/YetAnotherMinion/gists{/gist_id}","starred_url":"https://api.github.com/users/YetAnotherMinion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YetAnotherMinion/subscriptions","organizations_url":"https://api.github.com/users/YetAnotherMinion/orgs","repos_url":"https://api.github.com/users/YetAnotherMinion/repos","events_url":"https://api.github.com/users/YetAnotherMinion/events{/privacy}","received_events_url":"https://api.github.com/users/YetAnotherMinion/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-08-25T17:52:42Z","updated_at":"2015-08-25T21:38:57Z","closed_at":"2015-08-25T21:38:57Z","body":"Is there a way to set the values over a vector field using the same numbering mapping to nodes on mesh elements as returned by \r\n\r\n```C++\r\napf::getElementNumbers(apf::Numbering*, apf::MeshEntity*, apf::NewArray<int> & )\r\n```\r\nI have created a vector field and zeroed it. Now I want to modify the field components for each node on the field shape function. The element node mapping returned by getElementNumbers directly corresponds to my vector of displacements, which I now want to write to each node using the vector field. What is the best way to go from the global element mapping to the individual nodes of the vector field?\r\n\r\nIt looks like the inverse of what I am trying to do exists in the: \r\n\r\n``` C++ \r\nint FieldDataOf<T>::getElementData(MeshEntity* entity, NewArray<T>& data)\r\n ```\r\nWhere it aligns the nodes into the correct order and then retrieves the values from the field. Will running this in reverse give the same ordering as we get when retrieving the numberings?"},"comment":{"url":"https://api.github.com/repos/SCOREC/core/issues/comments/134749674","html_url":"https://github.com/SCOREC/core/issues/15#issuecomment-134749674","issue_url":"https://api.github.com/repos/SCOREC/core/issues/15","id":134749674,"user":{"login":"YetAnotherMinion","id":8005290,"avatar_url":"https://avatars.githubusercontent.com/u/8005290?v=3","gravatar_id":"","url":"https://api.github.com/users/YetAnotherMinion","html_url":"https://github.com/YetAnotherMinion","followers_url":"https://api.github.com/users/YetAnotherMinion/followers","following_url":"https://api.github.com/users/YetAnotherMinion/following{/other_user}","gists_url":"https://api.github.com/users/YetAnotherMinion/gists{/gist_id}","starred_url":"https://api.github.com/users/YetAnotherMinion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YetAnotherMinion/subscriptions","organizations_url":"https://api.github.com/users/YetAnotherMinion/orgs","repos_url":"https://api.github.com/users/YetAnotherMinion/repos","events_url":"https://api.github.com/users/YetAnotherMinion/events{/privacy}","received_events_url":"https://api.github.com/users/YetAnotherMinion/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T21:38:57Z","updated_at":"2015-08-25T21:38:57Z","body":"That was the way to do it. Thank you for your speedy help!"}}