{"action":"closed","issue":{"url":"https://api.github.com/repos/SCOREC/core/issues/18","labels_url":"https://api.github.com/repos/SCOREC/core/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/SCOREC/core/issues/18/comments","events_url":"https://api.github.com/repos/SCOREC/core/issues/18/events","html_url":"https://github.com/SCOREC/core/issues/18","id":103585043,"number":18,"title":"field not showing up until data is written","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":10,"created_at":"2015-08-27T20:09:23Z","updated_at":"2015-08-27T21:03:00Z","closed_at":"2015-08-27T21:03:00Z","body":"Creating a new field on a mesh, then attempting to write it to a file is a segfault.\r\nMinimal working example\r\n```C++\r\napf::Field* node_f = apf::createField(m, \"nodeField\", apf::SCALAR, m->getShape());\r\napf::writeVtkFiles(\"batman_elm\", m);\r\n```\r\nthen \r\n```\r\nexpected tag \"nodeField_ver\" on entity type 0\r\nAborted (core dumped)\r\n```\r\n\r\nBut if you zero the field `apf::zeroField(node_f);` then no segfault.\r\nI could not find the place in the documentation that indicates the need to write data to a field to\r\nmake it appear, so this issue is more of a heads up that the behavior of Field is not very clear if\r\nyou are only working from the doxygen.\r\n"}}