{"action":"created","issue":{"url":"https://api.github.com/repos/geodynamics/aspect/issues/791","repository_url":"https://api.github.com/repos/geodynamics/aspect","labels_url":"https://api.github.com/repos/geodynamics/aspect/issues/791/labels{/name}","comments_url":"https://api.github.com/repos/geodynamics/aspect/issues/791/comments","events_url":"https://api.github.com/repos/geodynamics/aspect/issues/791/events","html_url":"https://github.com/geodynamics/aspect/pull/791","id":141961986,"number":791,"title":"Fix adaptive mesh particle bug","user":{"login":"gassmoeller","id":7582930,"avatar_url":"https://avatars.githubusercontent.com/u/7582930?v=3","gravatar_id":"","url":"https://api.github.com/users/gassmoeller","html_url":"https://github.com/gassmoeller","followers_url":"https://api.github.com/users/gassmoeller/followers","following_url":"https://api.github.com/users/gassmoeller/following{/other_user}","gists_url":"https://api.github.com/users/gassmoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/gassmoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gassmoeller/subscriptions","organizations_url":"https://api.github.com/users/gassmoeller/orgs","repos_url":"https://api.github.com/users/gassmoeller/repos","events_url":"https://api.github.com/users/gassmoeller/events{/privacy}","received_events_url":"https://api.github.com/users/gassmoeller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-18T19:49:21Z","updated_at":"2016-03-22T15:30:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/geodynamics/aspect/pulls/791","html_url":"https://github.com/geodynamics/aspect/pull/791","diff_url":"https://github.com/geodynamics/aspect/pull/791.diff","patch_url":"https://github.com/geodynamics/aspect/pull/791.patch"},"body":"The particle creation contained a bug with initial adaptive refinements that was never found because none of my testcases used the 'Initial adaptive refinement' setting. Later adaptive refinements did not produce this error. The bug is now fixed by only generating the particles in the first initial refinement cycle and only reinitializing the particle properties in following cycles (identical to what we do with the initial condition)."},"comment":{"url":"https://api.github.com/repos/geodynamics/aspect/issues/comments/199867277","html_url":"https://github.com/geodynamics/aspect/pull/791#issuecomment-199867277","issue_url":"https://api.github.com/repos/geodynamics/aspect/issues/791","id":199867277,"user":{"login":"gassmoeller","id":7582930,"avatar_url":"https://avatars.githubusercontent.com/u/7582930?v=3","gravatar_id":"","url":"https://api.github.com/users/gassmoeller","html_url":"https://github.com/gassmoeller","followers_url":"https://api.github.com/users/gassmoeller/followers","following_url":"https://api.github.com/users/gassmoeller/following{/other_user}","gists_url":"https://api.github.com/users/gassmoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/gassmoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gassmoeller/subscriptions","organizations_url":"https://api.github.com/users/gassmoeller/orgs","repos_url":"https://api.github.com/users/gassmoeller/repos","events_url":"https://api.github.com/users/gassmoeller/events{/privacy}","received_events_url":"https://api.github.com/users/gassmoeller/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T15:30:52Z","updated_at":"2016-03-22T15:30:52Z","body":"1) Yes you understood correctly. The sorting happens during the mesh refinement via signals, so there is no need to sort them again.\r\n\r\n2) Good point. I will address that in a separate PR."}}